I am using datatables for my application, multiselect is working in first page but it seems not working with pages 2 and 3 with pagination.
Code is,
$(document).ready(function() {
$('#example tr').click( function() {
$(this).toggleClass('row_selected');
} );
} );
and css is
table.display tr.even.row_selected td {
background-color: #efefef;
}
table.display tr.odd.row_selected td {
background-color: #efefef;
}
what else should i include to make multiselect work for other pages?
Or is there anything wrong with the code?
Please help
Thanks,
2 Things..
1.Make sure to include the js code in your page 2 and a page 3
2.May be your
trare generated dynamically..you need todelegate