简体   繁体   中英

provoke slider's slide event jquery ui

有没有办法在代码中手动引发jQueryUI滑块的slide事件?

$("#myslider").slide(100); //changes slider value to 100 and provokes sliders slide event
var slider = $('#myslider').slider();
slider.slider( "value", 100 );

This link might help you http://jqueryui.com/slider/#hotelrooms

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM