Using jQuery droppable plug-in , you can make selected elements droppable (meaning they accept being dropped on by draggables).
All callbacks receive two arguments: The original browser event and a prepared ui object, view below for a documentation of this object (if you name your second argument 'ui'):
For options, events and method click here
Example :
droppable.html
<!DOCTYPE html> |
Output :
When you drop small box on big one , it will show a alert message :

Learn from experts! Attend jQuery Training classes.
|
Recommend the tutorial |

Ask Questions? Discuss: jQuery UI Interaction : Droppable
Post your Comment