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
-
- Posts:107
Adding data from html table in form fields
Admin
Posts:805
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.
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.