How to get values from table for a selected item
How to get values from table for a selected item
I am using datatables with ajax source data https://datatables.net/examples/data_sources/ajax.html
and with checkboxes https://datatables.net/extensions/select/examples/initialisation/checkbox.html
I have combined the examples and am looking for a method of getting the row data whenever a check box is selected or deselected.
so far I have a nearly working site but need some more lines of code to put in these two functions . if I could print the row entry to the console that is all I need.
var table = $('#example').DataTable();
table.on( 'select', function ( e, dt, type, indexes ) {
?
} );
table.on( 'deselect', function ( e, dt, type, indexes ) {
console.log(indexes)
?
} );
I've put my site online if anyone is able to take a quick look at the table.on section.
https://dl.dropboxusercontent.com/u/58789419/shimplotwellbeta/indexbeta2.html
Many thanks for making this amazing resource