dr5779 2011-09-13 17:58
浏览 22
已采纳

最小最大滑块形成

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.

  • 写回答

1条回答 默认 最新

  • dsfs504545 2011-09-13 18:59
    关注

    Why weren't you able to implement the jQuery UI slider? Here are the steps I take to including jQueryUI plugins.

    1. Link to jQuery
    2. Link to jQueryUI
    3. Link jQueryUI stylesheet
    4. Create HTML

    div id="slider">

    5 . Create JS

    $(function(){  
         $('#slider').slider({  
              min: 50,  
              max: 2500
         });     
    });  
    

    http://jsfiddle.net/aHFwP/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 mmocr的训练错误,结果全为0
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀