It depends on whether you want to change the sliders in the current range or change the range of sliders.
If these are the values โโin the current range that you want to change, then the .slider () method is the one you should use, but the syntax is slightly different from what you are using:
$("#slider").slider('value',50);
or if you have a slider with two handles, it will be:
$("#slider").slider('values',0,50); // sets first handle (index 0) to 50 $("#slider").slider('values',1,80); // sets second handle (index 1) to 80
If this is the range you want to change, it will be:
$("#slider").slider('option',{min: 0, max: 500});
alexteg May 14 '10 at 10:51 2010-05-14 10:51
source share