bapp11.indd 02/17/2015 Page 561
Sortable
SORTABLE METHODSMETHOD DESCRIPTION RETURN
VALUEsortable(options) Makes the selected element(s) sortable.
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 “Sortable Options” section later in
this appendix.jQuerysortable('cancel') Cancels a change in the state of a sortable
and reverts it back to what it was prior to
sorting.jQuerysortable('destroy') Completely removes sortable functionality
from the selected element(s).jQuerysortable('disable') Disables sortable functionality on the
selected element(s).jQuerysortable('enable') Enables sortable functionality on the selected
element(s).jQuerysortable('option',
optionName)Returns the value of the specifi ed option. Mixedsortable('option') Returns an object containing all values of all
options.Objectsortable('option',
optionName,
optionValue)Sets the specifi ed option to the specifi ed
value.jQueryK
continues