I am trying to make this html table editable. I have a query that generates any number of rows with values liek
First Name | Last Name | Email | edit icon
When the user clicks the graphical edit icon, I want the given row they are trying to edit, to change the firstname, lastname, and email fields into input boxes so the user can change the values. The edit icon at that point should change to a save icon basically another graphic that looks like a 'save icon'
How can I do this?
So essentially the values in the above 3 columns are just in <td's>, but when you click the edit icon, it should go from just text as "John" to an input field with the value "John" so the user can then change it.
Hope that makes sense.