Using :visible and :first-child together in jQuery
<p>I'm trying to use the ":visible" and ":first-child" pseudo-selectors together in jQuery and it doesn't seem to be working out.  I have the following HTML:</p>

<pre><code>&lt;div&gt;
    &lt;a class="action" style="display:none;"&gt;Item One&lt;/a&gt;
    &lt;a class="action"&gt;Item One&lt;/a&gt;
    &lt;a class="action"&gt;Item One&lt;/a&gt;
&lt;/div&gt;
</code></pre>

<p>And the following jQuery call:</p>

<pre><code>$("div a.action:visible:first-child").addClass("first");
</code></pre>

<p>But it never seems to find the right element...it finds the first element but not the first <strong>visible</strong> element.  I've even tried swapping the selector order ":first-child:visible" instead of ":visible:first-child" and that doesn't work either.  Any ideas?</p>
