I have HTML page which have multiple checkboxes and individually they can be checked. I have button for \"Select All\" and when I click on this button all the check
Use datatable $ instance for selections https://datatables.net/docs/DataTables/1.9.4/#$
$(document).ready(function () { var oTable = $('#example').dataTable({ stateSave: true }); $("#selectAll").on("change", function(){ oTable.$("input[type='checkbox']").attr('checked', $(this.checked)); }); });