I am trying to restrict a jQuery sortable list so that the user can only drag by one position at a time e.g. you can only move up or down one position in the list no skipping multiple li’s. Is this possible?
I have the vertical dragging implemented quite easily by having:
$( "#sortable" ).sortable({
containment: 'parent',
axis: 'y'
});
Any ideas? Thank you
The idea is that in the mousedown event reinstall sortable.items:
http://jsfiddle.net/qnT6x/2/
Also please see: http://jqueryui.com/sortable/#items