jslider
jslider copied to clipboard
Add option for minimum range, or example of how to implement it
It would be great to have a minimum range option for range sliders - or if you don't want to add it as an option, then an example of how to implement a minimum range.
By "minimum range", I mean the maximum allowed distance between the two ends of a range slider - and not letting the two ends be the same value.
I've made a JSFiddle here that hopefully explains what I would like, and the way I would ideally implement it if not as an option: http://jsfiddle.net/v3gUg/18/
OnStatechange can you get hold of old state value and if min range condition is not valid set it to valid state values.
how do you set it? using $("#Slider5").slider("value", somethign, else); doesn't seem to work properly