【发布时间】:2011-02-24 06:53:24
【问题描述】:
我有一个包含多行的表,我想在单击特定行后获取所有 TD 数据。
我的桌子是
<table>
<tr class="person">
<td class="id">1900</td>
<td class="name">John</td>
<td class="gender">Male</td>
</tr>
<tr class="person">
<td class="id">2000</td>
<td class="name">Pitt</td>
<td class="gender">Female</td>
</tr>
</table>
如何在使用 Jquery 点击 Row 后获取 id、name、gender。
Ex: If i click on John Row i should get 1900, John, Male and same for Pitt also
谢谢
【问题讨论】: