Update options to jQuery slider via form

Posted by Coughlin on Stack Overflow See other posts from Stack Overflow or by Coughlin
Published on 2009-04-14T15:21:48Z Indexed on 2010/05/03 6:08 UTC
Read the original article Hit count: 254

Filed under:
|

I have a jQuery Slider, and I am trying to make it more dynamic by adding three input fields:

min

max

step

I want to take those fields and then onblur update my slider options. I read that you can set options like this:

$('.selector').slider('option', 'max', 7);

And do the same for min,step, etc along with the other options.

I tried playing with it yesterday, but I'm not sure how to get it to update. I am using a form with no submit button, so just change on blur.

I know I would get the .val() of the input and set it to a variable then would it be:

 $('.selector').slider('option', 'max', var_here);

Any thoughts?

© Stack Overflow or respective owner

Related posts about jquery-ui

Related posts about slider