jQuery selector - get divs that are the parent of more than one div
<p>I'm trying to get all the elements on a page which have multiple divs as child elements. For example, in the following code:</p>

<pre><code>&lt;div id="1"&gt;
    &lt;div id="1a"&gt;
        &lt;div id="1aa"&gt;

        &lt;/div&gt;
        &lt;div id="1ab"&gt;

        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div id="1b"&gt;

    &lt;/div&gt;
&lt;/div&gt;
&lt;div id="2"&gt;
    &lt;div id="2b"&gt;

    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>My function would return <code>#1</code> and <code>#1a</code> as they both contain 2 child divs.</p>

<p>I've tried this:</p>

<pre><code>$('div &gt; div + div').css("border", "1px solid red");
</code></pre>

<p>But not only does this not work as desired, I also want it to apply when there are 5, 6, 7 /as many as possible child divs, provided it is <code>&gt;=2</code>. </p>

<p>What's the best way to achieve this?</p>
