How can I trigger a change event on a jQuery UI slider?
I thought it would be
$(\'#slider\').trigger(\'slidechange\');
but that do
A good approach is simply to change the value of the slider. The slider's own change method should then respond to the change of value. For instance:
var newValue=5; $('#slider').slider("value", newValue);