Page 1 of 1

Adding data from html table in form fields

Posted: 29 Nov 2014, 14:59
by Marius
Hi,
I have a html table with data from mysql database.
To each row in the html table there is an edit button. When i click on the edit button, I want data from the cells of that row to be added into the fields of a form, so to edit it and send to a php script.
Do you have a simple example or a link? I found only complicated variants which I not understand.

Adding data from html table in form fields

Posted: 29 Nov 2014, 15:03
by Admin
Hi,
Here is a simple and easy example: https://coursesweb.net/javascript/add-da ... -fields_s2
Just study the javascript code, and adapt it to your html table.