I need to use a Jquery UI Slider with Inches.
I know how to get the slider to work with standard numbers eg: 0 to 100 but I'm not sure how to get inches to work.
I assume an extra calculation is needed - maybe.
Any advice on how to get this one working?
Here's something that should get you started:
All you need to do is translate your slider minimum and maximum values into inches. When sliding the slider, you can display feet and inches by doing a simple conversion (implemented here in the
toFeet
method).Example: http://jsfiddle.net/andrewwhitaker/4extL/57/