nextUntil() jQuery selector
<p>why does it return an error?</p>

<p><a href="http://jsfiddle.net/L82JU/" rel="nofollow">http://jsfiddle.net/L82JU/</a></p>

<p>Uncaught TypeError: Object [object Object] has no method 'replace'</p>

<p>I want to select the first child of <code>.x</code> until the 3rd child of <code>.x</code></p>

<p>html</p>

<pre><code>&lt;div class="x"&gt;
    &lt;div class="a"&gt;a&lt;/div&gt;
    &lt;div class="b"&gt;b&lt;/div&gt;
    &lt;div class="c"&gt;c&lt;/div&gt;
    &lt;div class="d"&gt;d&lt;/div&gt;
    &lt;div class="e"&gt;e&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>jquery</p>

<pre><code>a=$('.x').children();
alert(a.eq(0).nextUntil(a.eq(3)).length);
</code></pre>
