how to retain jquery datatable in selected paging while selecting check box?.. Please help guys
how to retain jquery datatable in selected paging while selecting check box?.. Please help guys
Aravinthank2
Posts: 1Questions: 1Answers: 0
Code:
$('#results2').dataTable({
"bLengthChange": false,
"bSearchable": false,
"iDisplayLength": 5,
});
Check All Code:
<input type="checkbox" id="selectedObjects" name="selectedObjects" />
Java Script to select all item in particular paging:
$(".onselectclass").change(function () {
var allcheck = document.getElementsByName("selectedObjects");
for (i = 0; i < allcheck.length; i++) {
if (allcheck[i].checked) {
for (i = 0; i < arrChecks.length; i++) {
arrChecks[i].checked = true;
}
}
});
Issue:
It selecting all Item in page 3 but refreshing to page 1 while selecting.
Need Solution:
How to Select & retain in same page?..
This discussion has been closed.