How to iterate through a datatable, retrieve a row and display on a modal on button click using ajax
How to iterate through a datatable, retrieve a row and display on a modal on button click using ajax
mfon2k2@yahoo.com
Posts: 1Questions: 1Answers: 0
I have a datatable i loaded with records, i want to be able to click on a row button, the row button to display a modal dialog, populate the modal fields with corresponding row values using Ajax object.
This discussion has been closed.
Answers
The easiest way to select a row and get the row data is with the Select extension. You can see an example of this here:
https://datatables.net/extensions/select/examples/api/get.html
This is an example of using row buttons to get the row data:
http://live.datatables.net/xijecupo/1/edit
Kevin