How to iterate through all checkboxes on the page?
<p>How do  I can  iterate through all checkboxes on the page with JQuery?</p>

<p>I.e. I have those <code>checkboxes</code> above...</p>

<pre><code>&lt;div&gt;
&lt;input checked="checked" type="checkbox" name="option_1" id="checkbox_1" value="1" /&gt;35 MM                  
&lt;input checked="checked" type="checkbox" name="option_2" id="checkbox_2" value="2" /&gt;  DIGITAL                    
&lt;input type="checkbox" name="option_3" id="checkbox_3" value="3" /&gt; 3D DIGITAL
&lt;/div&gt;
</code></pre>

<p>Have I use </p>

<pre><code> $('input[id^="checkbox_"]').each(function() {

 });
</code></pre>

<p>Is it correct? Thank you!</p>
