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

Configuring a basic slider

Additional functionality, such as vertical sliders, multiple handles, and stepping can also be configured using an object literal, passed into the widget method when the slider is initialized. The options that can be used in conjunction with the slider widget are listed in the following table:

Option

Default value

Usage

animate

false

Enables a smooth animation of the slider handle when the track is clicked.

disabled

false

Disables the widget when it is initialized.

max

100

Sets the maximum value of the slider.

min

0

Sets the minimum value of the slider.

orientation

auto

Sets the axis along which the slider thumb is moved. This can accept the strings vertical or horizontal.

range ...

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