Jquery Mobile Slider change event

后端 未结 10 1885
独厮守ぢ
独厮守ぢ 2021-01-02 11:14

I have a jquery mobile slider on a simple page. When I drag the slider, the value updates as expected in the textbox. I have looked but cannot find where this logic is happe

10条回答
  •  一向
    一向 (楼主)
    2021-01-02 11:32

    I had the same problem, too many troubles with the event of the slider. Finally I found 'slidestop' event that works great. This is the code:

    $( "#slider-1").on('slidestop', function( event ) {
       var slider_value=$("#slider-1").slider().val();
       alert('Value: '+slider_value);
    });
    

    I hope this work for you

提交回复
热议问题