length or the number of checkboxes in one of the divs
<p>for example I have the following:</p>

<pre><code>&lt;div class="both"&gt;
    &lt;textarea data-id="1" name="t1"&gt;Value 1&lt;/textarea&gt;
    &lt;input type="checkbox" value="checkbox1" checked="checked" name="c1"&gt;
    &lt;input type="checkbox" value="checkbox1-2"  name="c1"&gt;
    &lt;input type="checkbox" value="checkbox1-3"  name="c1"&gt;
&lt;/div&gt;
&lt;div class="both"&gt;
    &lt;textarea data-id="2" name="t2"&gt;Value 2&lt;/textarea&gt;
    &lt;input type="checkbox" value="checkbox2-1"  name="c2"&gt;
    &lt;input type="checkbox" value="checkbox2" checked="checked" name="c2"&gt;
    &lt;input type="checkbox" value="checkbox2-3" name="c2"&gt;
&lt;/div&gt;
&lt;div class="both"&gt;
    &lt;textarea data-id="3" name="t3"&gt;Value 3&lt;/textarea&gt;
    &lt;input type="checkbox" value="checkbox3-1"  name="c3"&gt;
    &lt;input type="checkbox" value="checkbox3-2" name="c3"&gt;
    &lt;input type="checkbox" value="checkbox3-3" checked="checked" name="c3"&gt;
&lt;/div&gt;
</code></pre>

<p>I want to find out the number of checkboxes in first div element of both.</p>

<p>Stupid question, but I am new in this.. </p>

<p>Thanks</p>
