Jquery Mobile Slider change event

后端 未结 10 1893
独厮守ぢ
独厮守ぢ 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'm using this code and it works in jquery mobile 1.4.3.

    $(".ui-slider").on('change', function(event) { 
        var valuenow = $(this).find(".ui-slider-handle").attr("aria-valuenow");
        console.log(valuenow);
    });
    

提交回复
热议问题