<tr>
<td>#</td>
<td>2009</td>
<td><a class="delete_this">Click</a></td>
</tr>
我想要使用jquery,並在點擊錨點時獲取第二個(第二個)「td」的文本。我想在同一個tr中的「td」作爲錨...如何使用層次結構獲取td的值?
我該怎麼做?
到目前爲止,我有
$(document).ready(function(){
$(".delete_this').click(function(){
var myNUmber = $(this).parent()....///And this i should write the code to get the text for second td in tr where the anchor belongs to
})
})
delete_this是'`。它沒有兄弟姐妹 – ChssPly76 2009-08-01 00:29:27