O'Reilly logo

jQuery UI 1.10: The User Interface Library for jQuery by Dan Wellman, Alex Libby

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configurable options of the datepicker

The datepicker has a large range of configurable options (currently 50 to be exact). The following table lists the basic options, their default values, and gives a brief description of their usage:

Option

Default value

Usage

altField

""

Specifies a CSS selector for an alternative <input> field to which the selected date is also added.

altFormat

""

Specifies an alternative format for the date added to the alternative <input>. See the dateFormat option in the later section for clarification on the value this option takes.

appendText

""

Adds text after datepicker <input> to show the format of the selected date.

autoSize

false

Automatically sets the width of the <input> element ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required