using below seem only show the current page checkbox, not all pages.
I have tried this code but error occured. Kindly replay me. Error: the fnGetNodes() not a function.
$("#BtnAddClientContract").click(function (e) {
var id = "";
var table = document.getElementById('ListDiv');
$('input[class="chkProductDetails"]', table.fnGetNodes()).each(function (e) {
if (this.checked) {
id = id + $(this).val() + ',';
}
});
});


Ranjit Kanojia59 reputationPosted Jun 1, 2016, 1:29 AM EDT
Akshay PhadkeRank #161 · 14.6K reputationPosted May 29, 2016, 11:34 PM EDT
Ranjit Kanojia59 reputationPosted May 30, 2016, 10:53 PM EDT
console.log($(this).val());
});
Abhilash J ARank #1,243 · 1.4K reputationPosted Jun 1, 2016, 1:11 AM EDT
Ranjit Kanojia Sir,
I have write the code like this, but still that error occured. The error isvar table = document.getElementById('ListDiv');
$("input:checked", table.fnGetNodes()).each(function () {
id = id + console.log($(this).val());
debugger;
});
Francis SusaimichaelRank #466 · 5.4K reputationPosted Jun 1, 2016, 10:19 PM EDT