Help with jQuery .prepend() usage
<p><code>.prepend()</code> works when there is one line of code such as <code>.prepend("&lt;li&gt;item1&lt;li&gt;")</code> but when I try to put a big block of code in it, such as multiple divs with classes etc, it doesn't work. I did however, see that you can pass it a function but I can't figure out the syntax.</p>

<p>If I need to use <code>$(selector).prepend(function(index,html))</code> instead please help me use this.</p>

<p>Edit: I got it working by passing a function into it, I still don't understand how to use the index,html parameters.</p>
