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 KanojiaPosted Jun 1, 2016, 5:29 AM
Francis SusaimichaelPosted Jun 2, 2016, 2:19 AM
Abhilash J APosted Jun 1, 2016, 5:11 AM
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;
});
Ranjit KanojiaPosted May 31, 2016, 2:53 AM
console.log($(this).val());
});
Akshay PhadkePosted May 30, 2016, 3:34 AM