Link to home
Start Free TrialLog in
Avatar of IT79637
IT79637Flag for United States of America

asked on

How to determine html table row clicked?

I have a table, where each row has a text field in it. However, the first row of the column is reserved for the description.  The text fields are named amt1, amt2, amt3,...,amt10.  When I click on one of the text area fields, how can I determine the row number of the table using javascript?

So if I click into the text area in row 4 (relative 0), I know that I have clicked into 4th text area and the name is amt4.



Screen shot below.

Thanks
HTML2.jpg
ASKER CERTIFIED SOLUTION
Avatar of kevin_u
kevin_u
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of IT79637

ASKER

Works for me!
Thanks.