Need a way to allow sorting except for last item with in a list.
Tried using the cancel option but it didn't work and I don't think that's what its for.
I think a solution may be with events but would like your take on it.
In practice the list is dynamically generated and relies on tag and relative referencing not id's for selecting.
Sample code:
$("ul").sortable({});
...
<ul>
<li>red</li>
<li>blue</li>
<li>white</li>
<li>black</li>
<li>this li should not be sorted</li>
</ul>
Browser is Internet Explorer 6.
$("ul").sortable( { items: "> li:not(:last)" } );
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With