I have this list:
<ul>
<li class="line"><a href="#" class="drag">header (do not sort)</a></li>
<li class="line"><a href="#" class="drag">line one</a></li>
<li class="line"><a href="#" class="drag">line two</a></li>
</ul>
How can I prevent the first li from being moved?
You can specify which items within the
Sortableare actually sortable. This should do the trick—change the HTML as follows:Then when you set up the sortable: