<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