Web Development with jQuery®

(Elliott) #1

bapp19.indd 02/17/2015 Page 615


Slider


Slider Methods

Method Description Return Value

slider(options) Makes the selected elements into slider
elements (see “Slider Options”).

jQuery

slider('destroy') Completely removes the sliding functionality. jQuery

slider('disable') Disables the slider. jQuery

slider('enable') Enables the slider. jQuery

slider('option') Returns an object of key, value pairs
representing all options presently set for that
instance of the slider plugin.

Object

slider('option',
optionName)

Returns the value of the specifi ed option. Mixed

slider('option',
optionName, value)

Sets the value of the specifi ed option to the
specifi ed value.

jQuery

slider('option',
optionObject)

Sets multiple options using an object of key,
value pairs.

jQuery

slider('value') Returns the value of the slider. Number

slider('value',
value)

Sets the value of the slider. jQuery

slider('values') Returns all values for all handles. Array

slider('values',
index)

Returns the value for the specifi ed handle. Number

S


continues

http://www.it-ebooks.info

Free download pdf