I have some trouble with jque开发者_如何学Gory ui-events: In my application, there are some sliders. I have to adjust the "min"-option from time to time, but I have the problem, that the change()-event is not triggered after that. I would expect that on every value-change, programmatically or manually, the change-event is called. How to treat that correctly?
Change event only triggered on value change (as you already know). But you can "fake" value change:
var value = $('#mySlider').slider('option', 'value');
$('#mySlider').slider('option', 'value', value);
精彩评论