Check All Checkboxes in Multiple Pages
Check All Checkboxes in Multiple Pages
s75mandeep
Posts: 1Questions: 0Answers: 0
Hi,
I am trying to check all the checkboxes on multiple pages by clicking a check all checkbox.
Checkall Checkbox is
$(function(){
$("#select_all").click(function () {
var oTable = $('#webmaster_search_results').dataTable();
var nNodes = oTable.fnGetNodes( );
//alert(nNodes.length);
$('input', nNodes).attr('checked','checked');
var nHiddenNodes = $('input', oTable.fnHiddenGetNodes()).attr('checked','checked');
});
});
It checks the checkboxes on first page only.
Could you please help.
Thanks,
Mandeep
I am trying to check all the checkboxes on multiple pages by clicking a check all checkbox.
Checkall Checkbox is
$(function(){
$("#select_all").click(function () {
var oTable = $('#webmaster_search_results').dataTable();
var nNodes = oTable.fnGetNodes( );
//alert(nNodes.length);
$('input', nNodes).attr('checked','checked');
var nHiddenNodes = $('input', oTable.fnHiddenGetNodes()).attr('checked','checked');
});
});
It checks the checkboxes on first page only.
Could you please help.
Thanks,
Mandeep
This discussion has been closed.