bapp10.indd 02/17/2015 Page 551
Draggable and Droppable
DRAGGABLE AND DROPPABLE METHODSMETHOD DESCRIPTION RETURNSdraggable(options) Makes the selected element(s) draggable.
Options can be specifi ed by passing an object
literal as the fi rst argument using key, value
pairs. For a complete list of options, see
the “Draggable Options” table later in this
appendix.jQuerydraggable('destroy') Completely removes draggable functionality
from the selected element(s).jQuerydraggable('disable') Disables draggable functionality on the
selected element(s).jQuerydraggable('enable') Enables draggable functionality on the
selected element(s).jQuerydraggable('option') Returns an object literal containing key, value
pairs representing the value of each currently
set option.Objectdraggable('option',
option)Returns the currently set value of the provided
option name.Mixeddraggable('option',
option, value)Sets the value of provided option to value. jQuerydraggable('widget') Returns a jQuery object containing the drag-
gable element.jQueryJ
continues