Appendix J
Draggable and Droppable
Draggable and Droppable Methods | ||
Method | Description | Returns |
draggable( options) |
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 “Draggable Options” table later in this appendix. | jQuery |
draggable('destroy') |
Completely removes draggable functionality from the selected element(s). | jQuery |
draggable('disable') |
Disables draggable functionality on the selected element(s). | jQuery |
draggable('enable') |
Enables draggable functionality on the selected element(s). | jQuery |
draggable('option') |
Returns an object literal containing key, value pairs representing the value of each currently set option. | Object |
draggable('option', option) |
Returns the currently set value of the provided option name. | Mixed |
draggable('option', option, value) |
Sets the value of provided option to value . |
jQuery |
draggable('widget') |
Returns a jQuery object containing the draggable element. | jQuery |
droppable( options) |
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 |
droppable('destroy') |
Completely removes droppable functionality from the selected element(s). | jQuery |
droppable('disable') |
Disables droppable functionality on the selected element(s). ... |
Get Web 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.