title: select all checkboxes command jquery, javascript
body: <p>I'm trying to get all of my checkboxes to be checked when clicking a link </p>
  
  <p>looks like this: <code>&lt;a href='javascript:;' onclick="$.overall.selectAll();"&gt;select all&lt;/a&gt;</code></p>
  
  <p>inputs in a loop:  <code>&lt;input type="checkbox" name="delete[$i]" value="1" /&gt;</code></p>
  
  <p>jquery code: </p>
  
  <pre><code>var checked_status = this.checked;
  
      $("input[name=delete]").each(function() {
      this.checked = checked_status;
  });
  </code></pre>
  
  <p>Can someone help me get it to check all.. ?</p>
  
  <p>When clicking at the select all link, nothing seems to happen.. (not even an error) </p>