I am using jquery-ui dragable and set refvert for invalid.
the problem is that when I drag an element and leave it invalid, it does not return to its initial position. it takes place in a new position.
I include an example:
http://jsfiddle.net/zMxJv/
Remove from the code draggableand droppablethat you really do not need, since the sortable descriptors are for you.
draggable
droppable
Here's an updated fiddle to give you an idea of where these chapters are: http://jsfiddle.net/zMxJv/5/
, , connectWith.
connectWith
true false, droppable, draggable.
, : , . :
containment: 'parent'
.
. : http://jsfiddle.net/qMdGs/3/
: http://jsfiddle.net/qMdGs/5/