How to select unchecked checkbox
<p>I am using jquery UI tabs. I have 2 tabs with id <code>#tab1</code> &amp; <code>#tab2</code> respectively. Both tab </p>

<p>contains <em>2 checkbox (total 4)</em>. And currently all are <code>unchecked</code>. Now i wrote this jquery code :</p>

<pre><code>  $("#tab2").find("input:not(:checked)").each(function () { alert("1"); });
</code></pre>

<p>My problem is that, the alert <em>come 4 times</em>, but it should <em>come 2 times</em>. Whats the problem here?</p>

<p><strong>EDIT</strong></p>

<pre><code>       &lt;div class="dialog"&gt;
            &lt;div id="tab"&gt;
                &lt;ul&gt;
                    &lt;li&gt;&lt;a href="#tab1"&gt;A&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href="#tab2"&gt;B&lt;/a&gt;&lt;/li&gt;
                &lt;/ul&gt;
                &lt;div id="tab1"&gt;
                        &lt;input type="checkbox" /&gt;
                        &lt;input type="checkbox" /&gt;
                &lt;/div&gt;
                &lt;div id="tab2"&gt;
                        &lt;input type="checkbox" /&gt;
                        &lt;input type="checkbox" /&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
</code></pre>
