How to check if checkbox is checked inside a particular form?
<p>I created a jQuery function to check if a checkbox is checked like so:</p>

<pre><code>if ($('input:checkbox:checked').length &gt; 0){ }
</code></pre>

<p>I have two set of check boxes in two separate forms. When I use above code it checks for checkboxes in both forms. I want the <code>if</code> condition only for one form.  How can I achieve it?</p>
