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

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

oliversloliversl Posts: 3Questions: 2Answers: 0

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

Answers

  • kthorngrenkthorngren Posts: 21,147Questions: 26Answers: 4,918
    Answer ✓

    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 use toArray() to extract the data into a Javascript array.

    Kevin

  • oliversloliversl Posts: 3Questions: 2Answers: 0

    Many thanks Kevin

This discussion has been closed.