Getting started with the droppable widget
In a nutshell, the droppables component of jQuery UI gives us a place for the drag objects to be dropped. A region of the page is defined as a droppable, and when a drag object is dropped onto that region, something else is triggered. You can react to drops on a valid target very easily using the extensive event model exposed by this component.
Let's start with the default droppable implementation. In a new file in your text editor, add the following page:
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Droppable</title> <link rel="stylesheet" href="development-bundle/themes/redmond/jquery.ui.all.css"> <link rel="stylesheet" href="css/droppable.css"> <script src="http://code.jquery.com/jquery-2.0.3.js"></script> <script src="development-bundle/ui/jquery.ui.core.js"></script> <script src="development-bundle/ui/jquery.ui.widget.js">...