Appendix J. Draggables and Droppables
Draggable and Droppable Methods
Method | Description | Return Value |
---|---|---|
| Makes the selected element(s) draggable. Options can be specified by passing an object literal as the first argument using key, value pairs. For a complete list of options, see the "Draggables Options" section later in this Appendix. | jQuery |
| Disables draggable functionality on the selected element(s). | jQuery |
| Enables draggable functionality on the selected element(s). | jQuery |
| Completely removes draggable functionality from the selected element(s). | jQuery |
| Makes the selected element(s) droppable. Options can be specified by passing an object literal as the first argument using key, value pairs. For a complete list of options, see the "Droppable Options" section later in this Appendix. | Dropset |
| Disables droppable functionality on the selected element(s). | jQuery |
| Enables droppable functionality on the selected element(s). | jQuery |
| Completely removes droppable functionality from the selected element(s). | jQuery |
Draggables Options
Option | Description | Type |
---|---|---|
| For a draggable with a | Element, Selector |
| Contains dragging to an | String |
|
Get Beginning JavaScript® and CSS Development with jQuery now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.