title: jQuery datatables : Disable chechbox except the checked checbox with pagination
body: <p>I have a jQuery data tables in which there are something 13000 user records with checkbox option.</p>
  
  <p>As the requirement, I can select any 3 users from them by selecting the checkbox option against that particular users.</p>
  
  <p>When I reach the limit i.e. 3 all other checkbox option should get disable.</p>
  
  <p>But the currently, it work only for that particular page. When I select the 3 users from page 1 then all other checkbox options gets disabled but when I move to second page then all the options are available to select the users. Means, it works correctly but as per the page wise.</p>
  
  <p>I don't want this, it should work as I reach the limit i.e. 3 all other checkbox option should get disable across all the pages.</p>
  
  <p><strong>jQuery Code :</strong>  Where checkb is class name for all checkbox. Also, I have attached the image for more information.</p>
  
  <pre><code>if($('input.checkb').filter(':checked').length == 3)
          $('input.checkb:not(:checked)').attr('disabled', 'disabled');
       else
          $('input.checkb').removeAttr('disabled');
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/6fFNU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6fFNU.png" alt="enter image description here"></a></p>