How can i get all TD data upon clicking on a TR with Jquery
Posted
by
KillerFish
on Stack Overflow
See other posts from Stack Overflow
or by KillerFish
Published on 2011-02-24T06:53:24Z
Indexed on
2011/02/24
7:25 UTC
Read the original article
Hit count: 288
Hi friends,
I am having a table with multiple rows and i want to get all the TD data after clicking on a particular ROW.
My Table is
<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>
How can i Get id, name, gender after clicking on Row using Jquery.
Ex: If i click on John Row i should get 1900, John, Male and same for Pitt also
Thank You
© Stack Overflow or respective owner