Datatables Jquery capture clicking on pagination b

2019-08-29 05:53发布

问题:

How to uncheck header checkbox while traversing pages in paginated datatable, i.e. suppose i have checked the header checkbox and traversed to next or last page using the pagination buttons, now i want the header checkbox to be unselected. Appreciate help in advance.

Regards,

Vaibhav

回答1:

You can do this in the fnDrawCallback function

"fnDrawCallback": function () {
    $("#select-all-header").removeAttr("checked");
}