Example code here: http://jsfiddle.net/pDuxe/
I have a droppable
space with two draggable
elements. I have two issues:
If the
droppable
area already has adraggable
item in it, if I then try and drop a second item on top, I need it to berefused
and to revert back to its original position.I can make use of the
revert: 'invalid'
code without problems, but if I place adraggable
item into adroppable
area and then want to move it back - it keeps reverting back to its place in thedroppable
area and not its original position.
So, how would I go about achieving those two situations?