Web Development with jQuery®

(Elliott) #1

bapp15.indd 02/17/2015 Page 589


Datepicker


DATEPICKER METHODS

METHOD DESCRIPTION RETURN VALUE

datepicker(options) Makes the selected elements into
Datepickers (see “Datepicker
Options”).

jQuery

datepicker('destroy') Destroys the Datepicker. jQuery

datepicker('dialog', date
[, onSelect][, settings]
[, pos])

Opens a Datepicker in a dialog
box.

jQuery

datepicker('getDate') Retrieves the current date(s) for a
Datepicker.

Date

datepicker('hide', speed) Closes a previously open
Datepicker.

jQuery

datepicker('isDisabled') Determines whether a Datepicker
fi eld has been disabled.

Boolean

datepicker('option') Returns an object of all options as
key, value pairs.

Object

datepicker('option',
optionName)

Returns the specifi ed option. Mixed

datepicker('option',
optionName, value)

Sets the specifi ed option to the
specifi ed value.

jQuery

datepicker('option',
optionObject)

Sets options using an option
object.

jQuery

O


continues

http://www.it-ebooks.info

Free download pdf