これを使用して、テーブルごとにクリックイベントを設定しようとしています。
これは表です:
<table border='1px'>
<tr>
<td class='td'>first row frist column</td>
<td>first row second column</td>
</tr>
<tr>
<td class='td'>second row frist column</td>
<td>second row second column</td>
</tr>
<tr>
<td class='td'>third row frist column</td>
<td>third row second column</td>
</tr>
</table>
そして、これは単純なjQueryです:-
$('table tbody tr td:nth-child(1)').live('click',function(){
alert($(this).text());
})
これで最初の列のいずれかをクリックし、アラートでテーブルの最初の行の列のクリックイベントを設定解除します。
これどうやってするの。