Updating checkboxes through JQuery

Updating checkboxes through JQuery

ecarmonecarmon Posts: 2Questions: 1Answers: 0

I'm trying to set checkboxes on pages in a Datatable that are not currently being viewed (ie. 2nd page).

I'm using Jquery to set the checkbox but the checkbox is only set when it's on the 1st page (viewable page) and not on any subsequent page that is not currently viewable.

$('.cb-xxx').prop('checked', true);

.cb-xxx is a checkbox on the 2nd page but when the JQuery is executed the status of the checkbox doesn't change unless I'm actually viewing the 2nd page...

Do I need to refresh the Datatable somehow?

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.