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:

<ul id="container">
    <li>1</li>
    <li class="fixed">2</li>
    <li>3</li>
    <li class="fixed">4</li>
    <li>5</li>
</ul>

JS:

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

Post a Comment for "JQuery UI Sortable Dynamic Fixed Items"