Filter elements that has ul not only with specific children
<p>How do I write jQuery selector to test if li has ul that has at least one li that is not .disabled (may be other classes or without class at all).</p>

<p>Yes sounds complex but it's simple - I need to know if there're uls that do not have "disabled" class on inner lis.</p>

<p>Something like </p>

<pre><code>$("li").filter("*:has(ul:has(li:not(.disabled)))")
</code></pre>
