posted 13 years ago
We have no idea how you're implementing your pagination, whether or not you're going back to the server when you return to a previous page, how the initial state of the checkboxes is determined in the first place, etc.
If you're talking about this:
1) I hit the database and get the first page's results
2) I check some checkboxes
3) I click on the next page and go to the server to get page two
4) I click some checkboxes there as well
5) I click to go back to page one and the boxes I checked are no longer checked
then the problem is obvious: the checkboxes aren't being persisted, and the page is being refreshed, so of course their values are re-initialized. You'd need to either persist the changes when you go to the next page, or Ajax an update when a checkbox state changes, or...
If you're doing the pagination "in-place", i.e. just updating the pagination div, you *could* keep the checkbox states in JavaScript and update them in one shot when you submit the changes.
But with the information given, it's difficult to help.