Adding data from html table in form fields

Topics related to client-side programming language.
Post questions and answers about JavaScript, Ajax, or jQuery codes and scripts.
Marius
Posts: 107

Adding data from html table in form fields

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.

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.