开发者

jquery ui events

开发者 https://www.devze.com 2022-12-21 12:28 出处:网络
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()-ev

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);
0

精彩评论

暂无评论...
验证码 换一张
取 消