How to get the list of ids of the rows I selected
How to get the list of ids of the rows I selected

I write multiple row selection code based on the example on the website :
$(document).ready(function() { var selected =[]; $("#assureur").dataTable({ "rowCallback": function(row,data){ if($.inArray(data.DT_RowId, selected) !==-1){ $(row).addClass('selected'); } } }); $('#assureur tbody').on('click', 'tr', function(){ var id = this.id; var index = $.inArray(id, selected); if( index === -1){ selected.push(id); } else { selected.splice(index,1); } $(this).toggleClass('selected'); }); });How can I get the list of the ids of the rows I selected ?
I would like to store them in an array so that I can use thise array later
Thank you for any help
This discussion has been closed.