jQuery UI Slider (setting programatically)

Posted by jAndy on Stack Overflow See other posts from Stack Overflow or by jAndy
Published on 2010-05-14T10:29:55Z Indexed on 2010/05/14 10:34 UTC
Read the original article Hit count: 266

Filed under:
|

Hi Folks,

I'd like to modify the sliders on-the-fly. I tried to do so by using

$("#slider").slider("option", "values", [50,80]);

This call will set the values, but the element will not update the slider positions. Calling

$('#slider").trigger('change');

does not help either.

Is there another/better way to modify the value AND slider position ?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ui