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](https://secure.gravatar.com/avatar/c48a41c92659d9ecc129a369060f336c/?default=https%3A%2F%2Fvanillicon.com%2Fc48a41c92659d9ecc129a369060f336c_200.png&rating=g&size=120)
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