checking al checkboxes in pagination
<p>I have a page that contains user list and checkboxes before each of them and there is a SELECT ALL button.The code works fine.  But the problem is that due to pagination, only the checkboxes in the current page gets selected, when i navigate to other pages via the pagination NEXT and PREVIOUS links, the checkboxes remain unchecked.  I cudnt find anything related to these or may be i was searching the wrong thing.  Please help.</p>

<p>i am using this code:</p>

<pre><code>$('#selectAll').click(function(e) {
e.preventDefault();
var checkbox = $(":checkbox");
checkbox.attr('checked', !checkbox.attr('checked'));
});
</code></pre>
