I have a simple jquery ui example. Basically I have to list the elements, each of which is sorted. And I want to do the following: Cancel sorting of the same list. for example, if I clicked an item at position one in the list one, and then dragged it to position 6 and dropped it. I want to prevent this, but if I delete an item in list two, that's fine.
I don’t know how to specify to match my requests. ConnectWith seems not sufficient:
$("#sortable").sortable({
connectWith: [$('#sortable2')]
});
$("#sortable2").sortable({
connectWith: [$('#sortable')]
});
here is an example:
http://jsfiddle.net/sQeZE/3/
Müsli source
share