appendTo add dom as last element in target but how to add it as first?
<p>I want to add element to as first as below. How can i do this ?</p>

<pre><code>$('&lt;li&gt;').appendTo($('ul')); // add it as last element

&lt;ul&gt;
    &lt;!-- i want to add element here --&gt;
    &lt;li&gt;&lt;/li&gt;
    &lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>
