Appears nextUntil argument is ignored
<p>In the code below I expect to see the Red, Blue, Green and Brown rows displayed, but it appears all rows, except Red, are hidden as if the nextUntil argument is ignored. Any clues? Thanks.</p>

<p>After some research,I tried both </p>

<pre><code>$("#firstrow").nextUntil('span[class="hues"]').hide();
</code></pre>

<p>and</p>

<pre><code>$("#firstrow").nextUntil('span:not(.colors)').hide();   
</code></pre>

<p>The HTML:</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"/&gt;
        &lt;script&gt;
            $(document).ready(function() {
                $("#firstrow").nextUntil('span[class="hues"]').hide();
                //$("#firstrow").nextUntil('span:not(.colors)').hide();            
            });
        &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;table id="colortable"&gt;
            &lt;tr id="firstrow"&gt;
                &lt;span class="colors"&gt;Red&lt;/span&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;span class="colors"&gt;Orange&lt;/span&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;span class="hues"&gt;Blue&lt;/span&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;span class="shades"&gt;Green&lt;/span&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;span class="colors"&gt;Brown&lt;/span&gt;
            &lt;/tr&gt;
        &lt;/table&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>
