jQuery slider - set background color to show desired range
Posted
by David
on Stack Overflow
See other posts from Stack Overflow
or by David
Published on 2010-06-07T18:38:47Z
Indexed on
2010/06/07
18:42 UTC
Read the original article
Hit count: 160
Howdy, I'm setting up a Filament Group jQuery UI slider and using it in a gradebook.
We need to allow teachers to set a desired background range (to show the desirable values vs. the actual value for a given grade). I'm hoping to set a shaded area (as shown in this picture) that would indicate to people viewing the slider which values are desirable. If the handle is within the desired ranges, then the value is satisfactory. If the handle is out of the background shaded range, then some changes may need to happen.
Any suggestions on how to accomplish this? Based on what I've experimented with using Firebug, it looks like a <div class="ui-slider">
is setup, but the values inside of it don't seem to allow setting background-colors (only the div allows for that).
Thanks for your help.
© Stack Overflow or respective owner