I have this code:
<ul id="hello">
<li>.....</li>
<li>.....</li>
<li>.....</li>
<li>.....</li>
<li>.....</li>
<li>.....</li>
</ul>
and this Script:
$("<label>The First item</label>").appendTo($('ul#hello li'));
How can I make it so that the .appendTo() function only applies to the first list item.
I've tried the :first-child selector
but it doesn't seem to work.
Any help is appreciated.