Is there a sexier way to write this jQuery selector?
<p>I want to select all the children of the <code>body</code> element before element with id <code>foo</code> (which is a child of <code>body</code>). Since it doesn't look like there are <code>:before()</code> or <code>:after()</code> selectors, I've got it working like this:</p>

<pre><code>$('body &gt; :first').nextUntil('#foo').andSelf();
</code></pre>

<p>but it seems kludgy. Could this be done with fewer function calls, or more efficiently? Maybe something akin to <code>$('body &gt; *:before(#foo)')</code> ?</p>
