title: jquery select parent that has children with certain attributes
body: <p>I've read this SO question : </p>
  
  <p><a href="https://stackoverflow.com/questions/7349858/jquery-select-children-which-has-specific-styles">jQuery - select children which has specific styles</a></p>
  
  <p>but my problem is a bit different.</p>
  
  <p>I want to select PARENTS that their 1st-level children (not all descendants) have some certain styles. Something like this :</p>
  
  <pre><code>&lt;ul id="BIG"&gt;
      &lt;li&gt;Home
  
          &lt;ul id="SMALL"&gt;
              &lt;li&gt; 123 &lt;/li&gt;
              &lt;li name="foo"&gt; 123 &lt;/li&gt;
              &lt;li&gt; 123 &lt;/li&gt;
          &lt;/ul&gt;
  
      &lt;/li&gt;
      &lt;li&gt;Articles&lt;/li&gt;
      &lt;li&gt;Petitions&lt;/li&gt;
      &lt;li&gt;Contact&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>And I want to catch the UL with id="SMALL". But my selector catch all 2 UL tags :</p>
  
  <pre><code>$('ul:has(li[name="foo"])')
  </code></pre>
  
  <p>Any suggestion ?</p>