change data datatable from button
change data datatable from button
joon49
Posts: 12Questions: 2Answers: 0
hello,
I would like to know how to change the value by clicking on the return button.
I work with an sql database
see on the picture
Cordially.
Replies
Use delegated events, as shown in this example to get the row data of the clicked button. Use
row().data()
to get the data. Make the changes and userow().data()
orcell().data()
to update the row data. Use jQuery ajax() to send the data to the server to update the database.Kevin
thank you but give me an example if possible.
Not sure what part you need an example for but here is one that shows getting the row data of the clicked button.
http://live.datatables.net/xijecupo/1/edit
Kevin