Counting checkboxes in JS/JQuery
<p>I have this simple line, that I was hoping would count all checked checkboxes with the class (.photos):</p>

<pre><code>var count = $('.photos').length;
</code></pre>

<p>It counts all the checkboxes that have that class (.photos) but it doesn't count the checked ones.</p>

<p>Does anybody know how to alter this line to count the checked checkboxes within this class?</p>

<p>Regards</p>
