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