Board Logo

set slider pos from input
richardgosling - 9/3/2007 at 12:36 PM

Hi,

I have a slider control which updates a text input box on a page (working perfectly), but I also need to allow the user to be able to update the input value by using either the slider or by typing straight into the box.

The slider automatically updates the input box, but how do I get the input box to automatically update the slider when it's value is changed?

There will be a button on the page which runs a javascript calculation on the values, so the page won't be refreshed. I just need to know how to set the slider from the value in the input box.

Thanks,

Richard.


tigra - 9/4/2007 at 02:40 AM

use onchange event of the input box to set the value of the slider.
see multiple_slider_designs_demo.html in the distribution package for code sample.


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/