I have an sortable list but I would like to disable the first item, so that the input field cannot be moved.
Here is the list:
<ul id="sortable" class="connectedSortable">
<input name="name1" class="inputfield" type="text" maxlength="30">
<li>first sort item</li>
<li>second sort item</li>
</ul>
And the js:
$("#sortable:not(:first-child)").sortable({
connectWith : ".connectedSortable"
});
I tried to solve this with the :not(:first-child) but it is not working... Does someone know how to do this?
Thanks!
<ul>that aren't inside of<li>tags