最小最大滑块形成
我目前有一个作为常规 html 表单提交的搜索模块。目前,我在其中获取产品的绝对最小值和最大值,例如 50 和 2500。 现在我需要构建一个带有两个按钮的滑块(用于选择范围),并且在提交表单时,需要发送这两个用户选择的值,最好作为两个不同的变量发送。我不熟悉如何做这样的事情,有什么想法吗?
谢谢你!
编辑: http://jqueryui.com/demos/slider/
这种格式是理想的,但是我甚至无法实现滑块,更不用说用它发送 2 个值了。 如果有人可以帮助实现上述滑块,或者建议不同的滑块方法,那将非常有帮助。
I presently have a search module that submits as a regular html form. In it, I currently fetch an absolute minimum and maximum value for products, for example 50 and 2500.
Now I need to build a slider with two buttons (to select a range) and when the form is submitted, both these user-selected values need to be sent, preferrably as two different variables. I am not familiar with how to do such a thing, any ideas?
Thank you!
Edit: http://jqueryui.com/demos/slider/
This format would be ideal, however I was not able to even implement the slider, let alone send 2 values with it.
If someone can help with implementation of the above slider, or suggest a different slider method it would be very helpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么您无法实现 jQuery UI 滑块?以下是我添加 jQueryUI 插件所采取的步骤。
div id="slider">
5.创建 JS
http://jsfiddle.net/aHFwP/
Why weren't you able to implement the jQuery UI slider? Here are the steps I take to including jQueryUI plugins.
div id="slider">
5 . Create JS
http://jsfiddle.net/aHFwP/