title: jQuery - Get the index of selected check box
body: <p>jQuery 1.7.1 - I have a check box column and would like to get the index of selected boxes as an array or iterate through each checkbox - check whether its selected or not, if selected get the index.</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;tr&gt;
    &lt;td&gt;&lt;input type="checkbox" class="it" name="it"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;input type="checkbox" class="it" name="it"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>