jQuery: Which row number is clicked in table.
Posted
by
Muhammad Zeeshan
on Stack Overflow
See other posts from Stack Overflow
or by Muhammad Zeeshan
Published on 2010-12-24T06:40:30Z
Indexed on
2010/12/24
6:54 UTC
Read the original article
Hit count: 258
I have a table like this:
<table>
<tr>
<td>1</td><td>1</td><td>1</td>
</tr>
<tr>
<td>2</td><td>2</td><td>2</td>
</tr>
<tr>
<td>3</td><td>3</td><td>3</td>
</tr>
</table>
How can I get that which row(tr) number is clicked in table by user? For example I clicked at tr one it should return 1.
thanks
© Stack Overflow or respective owner