2
私はこのjQueryのコードjQueryの:最後のセレクタ
$('#share_module:last').css("background-color","red");
を使用していますが、それは常に最初#share_module
HTML構造にそれをしないで行くいくつかのものをこの
<div id = "share_module" class = "id of the share">
//then stuff inside
</div>
<div id = "share_module" class = "id of the share">
//then stuff inside
</div>
<div id = "share_module" class = "id of the share">
//then stuff inside
</div>
<div id = "share_module" class = "id of the share">
//then stuff inside
</div>
<div id = "share_module" class = "id of the share">
//then stuff inside
</div>
のようなしかし、それはちょうど最初のものを取得します。誰も助けてくれますか?
ありがとうございました! – Frank