title: Datatables 1.10 "Check all" via jquery
body: <p>I know this might seem primitive, but I've been trying to implement it for a whole day, maybe because I can't fully comprehend how to use the API, I'm using DataTables 1.10.0, I have a table with pagination feature, each row has one checkbox in it, I need to have a "check all button" that would check all the checkboxes in all pages, the problem is that it only checks the checkboxes in the current page, and leaves the other pages unchecked, this is supposed to be easy, but I couldn't figure it out ! the answers I found use "fnGetNodes" which seems to be deprecated and not used by version 1.10</p>
  
  <p>Edit: this is my markup</p>
  
  <pre><code>        &lt;table class="table table-striped table-bordered table-hover" id="numbers_table"&gt;
                  &lt;thead&gt;
                      &lt;tr&gt;
                          &lt;th&gt;&lt;input type="checkbox" id="checkall" title="Select all" onClick="toggle(this)"/&gt;&lt;/th&gt;
                          &lt;th&gt;Number&lt;/th&gt;
                          &lt;th&gt;Company&lt;/th&gt;
                          &lt;th&gt;Tags&lt;/th&gt;
                      &lt;/tr&gt;
                  &lt;/thead&gt;
                  &lt;tbody&gt;
                      &lt;% _.each(array, function (value) { %&gt;
                      &lt;tr&gt;
                          &lt;td&gt;&lt;input type='checkbox' name='numbers[]' value='&lt;%=value.id%&gt;'/&gt;&lt;/td&gt;
                          &lt;td&gt;&lt;%= value.number %&gt;&lt;/td&gt;
                          &lt;td&gt;&lt;%= value.company %&gt;&lt;/td&gt;
                          &lt;td&gt;&lt;%= value.tags %&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;% }) %&gt;
                  &lt;/tbody&gt;
              &lt;/table&gt;
  
      &lt;button type="button" class="btn btn-primary" id="checkall2"&gt;SELECT ALL&lt;/button&gt;
  
  &lt;script&gt;
  
  $(document).ready(function() {
  
      $('#numbers_table').dataTable({
          //"bPaginate": false,
          "aoColumnDefs": [
        { "bSortable": false, "aTargets": [ 0 ] }
      ] 
          });
  
      $("#checkall2").click(function() { // a button with checkall2 as its id
          $(':checkbox').prop('checked', true); // all checkboxes, you can narrow with a better selector
      });
  });
  &lt;/script&gt;
  </code></pre>