Skip to content Skip to sidebar Skip to footer

Jquery Ui Sortable Dynamic Fixed Items

I need some help with getting some items to stay in place in a jquery UI sortable. I know about JQuery sortable lists and fixed/locked items and it does work quite nicely, the prob

Solution 1:

You can make container element sortable so that you will not have to worry about new elements:

Demo

HTML:

<ulid="container"><li>1</li><liclass="fixed">2</li><li>3</li><liclass="fixed">4</li><li>5</li></ul>

JS:

 $("#container").sortable();

Post a Comment for "Jquery Ui Sortable Dynamic Fixed Items"