I know this might seem primitive, but I\'ve been trying to implement it for a whole day, maybe because I can\'t fully comprehend how to use the API, I\'m using DataTables 1.
if does not work try using api() keyword:
$('#YourCheckBoxId').on('click', function () { var rows = YourDatatableVariable.api().rows({ 'search': 'applied' }).nodes(); $('input[type="checkbox"]', rows).prop('checked', this.checked); });