How to check/uncheck all checkboxes with pagination
How to check/uncheck all checkboxes with pagination
Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem: Hello, i'am working on a very old project using datatables version 1.8.1. So i'am wondering how can i check/uncheck all checkboxes which are on multiple page. I'am using ajax-source to rendering the table and the bServerSide is set to true.
$('form table input[name="check_all"]').on('change', function() {
$(this).closest('table').find('input[type="checkbox"]:not(:disabled)').prop('checked', $(this).prop('checked'));
});
This code help me to select all checkbox on the current page only. What i want is to select all checkboxes.
I found the code below on the forum but its shows an error that dt.rows() is not a function maybe due to version difference ?
dt.rows().nodes().to$().find
Thanks in advance for your help,
Replies
Duplicate of this thread - please only post once...
Colin