Jquery Mobile Slider change event

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

    Use this code,

    $( ".mySliders" ).slider({
        create: function (event, ui) {
            $(this).bind('change', function () {
    
            });
        }
    });
    

    Do not put type="range" to your input tags, put type="text" instead.

    Since you are calling slider function manually.

提交回复
热议问题