title: jquery - iterate over checkboxes and determine if checked
body: <p>I want to iterate over checkboxes div and determine if checkbox1,checkbox2,checkbox3 are checked</p>
  
  <pre><code>    // iterate over checkboxes
      $('#register_students').click(function() { 
          $("div.checkboxes").each(function() {           
              var student = $(this).attr('data');             
              var checkbox1 = ??? 
              var checkbox2 = ???
              var checkbox3 = ???
          });     
          return false;
      });
  
  
  
  
  &lt;td&gt;
  &lt;div class='checkboxes' data=8255&gt;
  &lt;INPUT type="checkbox"  value="36" class="checkbox1"&gt;
  &lt;INPUT type="checkbox"  value="14" class="checkbox2"&gt;
  &lt;/div&gt;
  &lt;/td&gt;
  
  &lt;td&gt;
  &lt;div class='checkboxes' data=8244&gt;
  &lt;INPUT type="checkbox"  value="36" class="checkbox1"&gt;
  &lt;INPUT type="checkbox"  value="14" class="checkbox2"&gt;
  &lt;INPUT type="checkbox"  value="14" class="checkbox3"&gt;
  &lt;/div&gt;
  &lt;/td&gt;
  </code></pre>