I drag a “draggable” object to a “droppable” object. I want to know if something is already there in the position. I have already done that (without jQuery UI).
-
Can I do it somehow with jQuery UI?
-
If there is an object already present, the dragged object must revert to the original position. How can I get the original position of
ui.draggableinside the “drop” event?
Thanks.
You can find answer from previous post Draggable revert if outside this div and inside of other draggables (using both invalid and valid revert options)
Demo is here http://jsfiddle.net/htWV3/1/