jQueryMobile: how to work with slider events?

后端 未结 9 1474
南方客
南方客 2020-12-09 05:32

I\'m testing the slider events in jQueryMobile and I must been missing something.

page code is:

9条回答
  •  一个人的身影
    2020-12-09 06:03

    Try this code:

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

    I hope this work for you

提交回复
热议问题