morpheus83uk
-
Total Posts
:
738
- Scores: 0
-
Reward points
:
0
- Joined: 8/21/2006
-
Status: offline
|
Javascript selecting row
Monday, June 06, 2011 3:11 AM
( permalink)
Hello, I am after getting a cell value from a clicked Cell .. So far I have teh following javascript function: <script type="text/javascript"> function getInfo() { var Row = document.getElementById("tblrow"); var Cells = Row.getElementsByTagName("td"); alert(Cells[0].innerText); } </script> Which is on the onclick event of my tablerow it works fine but only gets the first name in the list regardless of which cell I click... Does anyone know how I can get it to give the value of the row which is clicked? Many Thanks James
|
|
|
|