jQuery ui滑块:外部mouseup上的调用函数 [英] jquery ui slider: call function on mouseup outside
本文介绍了jQuery ui滑块:外部mouseup上的调用函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用 jquery ui滑块,除了我定义的function
以外,一切都很好仅当我将鼠标移到手柄上时,更改parameter fired
.在slider
以外的地方释放鼠标时,有什么方法可以调用该函数?
i use the jquery ui slider and all is fine except that the function
i defined in the change parameter fired
only when i release the mouse over the handles. Is there a way to call the function when the mouse is released outside the slider
?
感谢您的帮助.
推荐答案
$("#slider").slider({
start: function(event, ui) {
// do something on mousedown on slider
},
stop: function(event, ui) {
// do something on mouseup anywhere
}
});
这篇关于jQuery ui滑块:外部mouseup上的调用函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文