Get the value of a cell table when clicking on it
Hi!
I'm new here and in the web programing world.
I'm trying to do a CRUD application in PHP.
What I'm trying to do is this:
I read a database table and show the records in a table grid. I want to click in one of the records and call another page that allows me to modify the information.
I was able to make the ID cell clickable with JavaScript and call the other page.
I used the onclick event to call a function and that's the one that will call the new page. I need to get the cell value (it's the ID number of the record to be modified) in order to pass this as parameter to the new form.
What I can't find how to do is to get the value of the cell. I tried the getElementById method, but is not doing what I need.
Any ideas.
Everything is welcome!
Thanks in advance!
Bettina
|