第1个回答 2012-06-25
<table id="J_tb">
<tbody>
<tr>
<td>111</td>
<td>111</td>
<td>111</td>
<td>111</td>
</tr>
<tr>
<td>111</td>
<td>111</td>
<td>111</td>
<td>111</td>
</tr>
</tbody>
</table>
$(function(){
var $tb = $('#J_tb');
var $td = $tb.find('td');
$td.click(function(){
alert($td.index($(this)));
})
})