Jquery Mobile Slider change event

后端 未结 10 1907
独厮守ぢ
独厮守ぢ 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:31

    Michael. Try to surround the slider with another element:

    And you can get an event on change:

    $("#div-slider").change(function() {
      var slider_value = $("#slider-1").val();
      // do something..
    });
    

提交回复
热议问题