Example for rows().ids() to string in javascript
Example for rows().ids() to string in javascript

Hi,
I wonder if there is an example on how to get the IDs of the selected rows, using rows().ids()
The return of rows().ids() is a DataTable Api object, but where do I go from there?
Many thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
rows().ids()
does return an API object and the object will contain an array of the IDs. You can access like a normal array or you can usetoArray()
to extract the data into a Javascript array.Kevin
Many thanks Kevin