jquery form slider (input-slider)

微笑、不失礼 提交于 2019-12-23 07:38:17

问题


How to make slider with jquery, like here?

User should select a value from slider, and this value should automatically be in input

I can not find the appropriate plug-in...


回答1:


http://jqueryui.com/demos/slider/

 $( "#slider" ).slider({
        value:100,
        min: 0,
        max: 500,
        step: 50,
        slide: function( event, ui ) {
                           //Its setting the slider value to the element with id "amount"
            $( "#amount" ).val( "$" + ui.value );
        }
    });

You can customize the style to look like the example you mentioned.



来源:https://stackoverflow.com/questions/8630069/jquery-form-slider-input-slider

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!