ui.slider two values, update from JS doesn't work

ui.slider two values, update from JS doesn't work


Hello,
I'm trying to change the values of a two-handle slider, but it doesn't
work.
According to the documentation this should work:
$("#slider").slider("option", "values", [ newval1, newval2 ]);
But it doesn't update the values on the slider's representation. When
I try to pull a handle I see the other one snapping to the position I
set from JS, but it doesn't go there after the function call above.
I also found some older discussions mentioning the MoveTo method, but
this string doesn't even appear in the source code of the slider.
Please, I'm getting really angry at jQuery...
Thanks