jquery before() function
<p>I have a form something like this:</p>

<pre><code>&lt;form&gt;
    &lt;ul&gt;
        &lt;li&gt;...&lt;/li&gt;
        &lt;li&gt;&lt;input type="submit" value="go" /&gt;&lt;/li&gt;
    &lt;/ul&gt;
&lt;/form&gt;
</code></pre>

<p>And then a jquery expression like this:</p>

<pre><code>$(document).ready(function() {
    $('#addField').click(function() {
        var cloned = $('#someid').clone(true);
        $('ul:last-child').before(cloned); // &lt;-- this doesn't work
    });
});
</code></pre>

<p>And jquery inserts the cloned object before the UL, not before the last child of the UL, as intended. If I change the jquery expression to "form ul:last-child" then it inserts before the form. What am I doing wrong?</p>
