<table>
<tr class="csstablelisttd">
<td>
</td>
<td>
15
</td>
</tr>
<tr class="csstablelisttd">
<td>
</td>
<td>
30
</td>
</tr>
<tr class="csstablelisttd">
<td>
</td>
<td>
45
</td>
</tr>
$(".csstablelisttd").live('mousedown', function(e) {
lastRow = $(this).closest("tr")[0].rowIndex;
}
我怎樣才能在鼠標列索引中的jQuery類的下來嗎?
目前還不清楚是否要列或行索引 –
我想列索引 – lax
你可以試試jQuery的索引(); http://api.jquery.com/index/ –