开发者

best graphical widget to define a range within a range

开发者 https://www.devze.com 2023-04-02 14:49 出处:网络
I am developing a web page using HTML, JavaScript and CSS. I have a range (e.g. 1,10000) I want the user to choose a sub-range (e.g. 1000-2800)

I am developing a web page using HTML, JavaScript and CSS.

I have a range (e.g. 1,10000) I want the user to choose a sub-range (e.g. 1000-2800)

What's the best way to do this? Is there some kind of slider or similar?

At the moment I am using two textf开发者_C百科ields and do some validation but that's far from a nice UX.


How about some sort of range slider?

Here's a jQuery one for you

http://ghusse.github.com/jQRangeSlider/stable/demo/


Check out this jQuery UI demo.


You can use the jQuery UI slider. It has an option to choose a sub-range.

0

精彩评论

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