Select all CheckBox not working for current page only
Select all CheckBox not working for current page only

This is working for all pages, I tried to address a table.rows({ page: 'current' }).nodes();
but is not working for the current page.
Kindly provide any solution
$('#selectAll').change(function () {
var cells = table.cells().nodes();
table.rows({ page: 'current' }).nodes();
$(cells).find(':checkbox').prop('checked', $(this).is(':checked'));
if ($(this).is(':checked')) {
that.setState({ buttstate: false });
}
else {
that.setState({ buttstate: true });
}
});
This discussion has been closed.
Answers
Upsss I'm an idiot
Thanks
We've all been there!
Colin