How to append an Object to a DOM Element with JQuery append(), add() or appendTo()?
<p>I can't seem to get this working, even though I have the idea it is perfectly correct. Consider the following code:</p>

<pre><code>&lt;script type="text/javascript&gt;
        ul = $(".qtrans_language_chooser");
        parent = ul.parent();
        activeLangLi = ul.children("li.active");

        parent.prepend('&lt;ul class="qtrans_active_language"&gt;&lt;/ul&gt;');
        activeLangUl = $(".qtrans_active_language");
        o = activeLangLi.appendTo(activeLangUl);
        activeLangLi.remove();
&lt;/script&gt;
</code></pre>

<p>All I'm trying to do is add activeLangLi to the empty activeLangUl. But no matter if I use append(), appendTo() or add() it never shows up.</p>
