开发者

JqueryUi Range slider: put min and max values into separated fields

开发者 https://www.devze.com 2023-01-07 10:19 出处:网络
开发者_高级运维Currently the range slider outputs min&max values into single text field. I think that\'s wrong behavior, at least for me :)
开发者_高级运维

Currently the range slider outputs min&max values into single text field. I think that's wrong behavior, at least for me :)

Is there a way to separate these values using two different "input" fields?

Thanks!


If you look at the demo code at http://jqueryui.com/demos/slider/#range you can see that the maximum and minimum values are avaliable from

Min

$("#slider-range").slider("values", 0)

Max

$("#slider-range").slider("values", 1)

or from within the slider callback with

slide: function(event, ui) {
            ui.values[0]/*min*/;
                            ui.values[1]/*max*/;
        }
0

精彩评论

暂无评论...
验证码 换一张
取 消