datatable checkbox select all pagination code example
Example: datatables get all checkboxes with pagination
$('#table').DataTable().rows().every(function (rowIdx, tableLoop, rowLoop) {
var data = this.node();
console.log($(data).find('input:checked'));
});