This question is regarding datatables,
I am trying to get multiple selected rows values as an array but unfortunately it comes as object only,
console.log(table.rows({'.selected').data());
var ids = jQuery.map(table.rows('.selected').data(), function (item) {
return item[3];
});
console.log(ids);
by using this code I am getting
[object, object, object,context:array[1]....]
[]
but i could not get like...
[array, array, array...]
['test','test1']
What is wrong with this? I tried with below question, but i could not get array, jQuery DataTables Getting selected row values