O'Reilly logo

jQuery and JavaScript Phrasebook by Brad Dayley

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

Using Sliders to Manipulate Elements

$( "#red, #green, #blue" ).slider({   orientation: "horizontal",   range: "min",   max: 255,   value: 127,   slide: refreshSwatch,   change: refreshSwatch }); $("#red").slider("value", 128); $("#green").slider("value", 128); $("#blue").slider("value", 128);

The slider widget allows you to create slider controls that adjust a value by dragging the mouse. The slider has two components: the slide and the handle. The slide is styled by the .ui-slider-range class, and the handle is styled by the .ui-slider-handle class.

The following ...

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