开发者

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

开发者_高级运维

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜