I have the following Datatable: LIVE DATATABLES
Before I click a button to submit the form, I would like to know the ids of the selected rows.
What I've tried:
$( "#testrow" ).click(function() {
console.log(DT4.rows().ids());
});
I used rows().ids() method (official datatables api documentation)
and I expected to get an array or something similar with the index numbers of the selected rows, but instead I am getting this:
This method does not read the DOM id for the tr so I am wondering which is the best way to know which row was selected (from the DOM) before submitting a form.
