valueSlider: Set Values with a Slider
A slider is curiously missing from the default set of form elements. It is however a very attractive way to set values with an upper and lower limit. This script allows for easy way to use sliders without degrading the accessibility of the form.
Graphicaly Setting a Value Within Two Limits
The graphical indicator is sensitive to mouse clicks and drags. The values are synchronized both ways to allow manual input.
Without javascript the value can still be entered manualy.
Incremental Slider
The following slider was divided into seven steps. The indicator changes colour at every increment.
With a little clever layering this behaviour can be quite versatile.
Required Files
-
jQuery Addon Script: jquery.classbehaviours.valueslider.js
- Prerequisite Script: jquery.classbehaviours.js
- Example Markup: valueSlider.html
- Example Stylesheet: valueSlider.css
Comments on this Article