title: how to select all checkbox in Datatables
body: <p>I want to select all my checkbox</p>
  
  <p>I have an input in header of datatables like this</p>
  
  <pre><code>  &lt;th style="width: 25%" &gt;&lt;input type="checkbox" name="checkall" class="select-checkall" id="checkall" value=""&gt;&lt;/th&gt;
  </code></pre>
  
  <p>i use it like this to checked it but only work in the page that iam</p>
  
  <pre><code>   $("#checkall").click(function(){
              $(':checkbox').prop('checked', true);                       
       });  
  </code></pre>
  
  <p>check this fiddle <a href="http://jsfiddle.net/juxHn/46/" rel="nofollow">http://jsfiddle.net/juxHn/46/</a></p>