Search for immediate selector in jQuery?
<p>I have this function which accepts <code>obj</code> (Jq object) as a parameter </p>

<p>However  , in this function , I <strong>only need</strong> <code>obj</code> which is  <code>:not(:disabled)</code> and <code>:not([readonly]</code></p>

<p>currently I've managed to do it with : </p>

<pre><code>function CheckRequiredSelection(obj)
{
    obj.find(".requiredSelection:visible:not(:disabled):not([readonly])").andSelf().each(function ()
    {
...
    });

}
</code></pre>

<p>But I really want to get rid of <code>find</code> and <code>addSelf</code> trick.</p>

<p>Any help ?</p>

<p>The document can contain : </p>

<p>Edit #1
    
    ...
    </p>

<pre><code>&lt;select class="requiredSelection"&gt;
...
&lt;/select&gt;

&lt;select class="requiredSelection"&gt;
...
&lt;/select&gt;
</code></pre>

<p>and before submit :  I do something like : </p>

<p><code>CheckRequiredSelection($(".requiredSelection"))</code></p>

<p>Edit #2</p>

<p>I could have check inside the .each loop but then it wont be efficient since it's after the selector. ( instead of getting 5 filtered elements from 100 , I will get 100 elements and THEN i'll have to filter. That's not nice).</p>
