Web Development with jQuery®

(Elliott) #1

bapp12.indd 02/17/2015 Page 569


Selectable


METHOD DESCRIPTION RETURN
VALUE

SORTABLE METHODS

selectable(options) Turns the children of selected
element(s) into selectable elements.
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 “Selectable
Options” section later in this appendix.

jQuery

selectable('option') Returns an object containing key value
pairs representing the current
selection of options.

Object

selectable(optionName) Returns the current value of the
specifi ed option.

Mixed

selectable(optionName, value) Sets the value of the specifi ed option. jQuery

selectable('disable') Disables selectable functionality on the
selected element(s).

jQuery

selectable('destroy') Completely removes the selectable
functionality.

jQuery

selectable('enable') Enables selectable functionality on the
selected element(s).

jQuery

selectable('refresh') Refreshes the position and size of each
selected element.

jQuery

selectable('widget') Returns a jQuery object containing the
selectable element.

jQuery

L


http://www.it-ebooks.info

Free download pdf