将两个输入文本字段转换为一个 Jquery 范围滑块
我想
<form name='bid_range' action='".$action."' method='post'>
<ul>
<p><input type=text name=bid_from size=6 value='' /></p>
<li><input type=text name=bid_to size='6' value='' /></li>
<input type='hidden' name='bid_next' value='".$TPL_next_bid_value."'>
<input type='hidden' name='seller_id' value='0'>
<input type='hidden' name='bid_type' value='range'>
<input type='hidden' name='title' value='".$TPL_title_value."' >
<input type='hidden' name='category' value='".$TPL_category_value."' >
<input type='hidden' name='id' value='".$TPL_id_value."'>
<input type='hidden' name='t_remained_bids' value='".$remained_bids."'>
<input type='hidden' name='auction_type' value='".$auction_type."'>
<input type='hidden' name='form_type' value='".$type."'>
<input type='hidden' name='f5_num' value='".$f5_num."'>
<input type=submit id='subbutton' name='subbutton' value='BID' class='button' style='width:70px;'>
</ul>
</form>
...并将该代码转换
<p>
<label for="amount">Price range:</label>
<input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;" />
</p>
为 jquery 范围滑块而不是两个文本字段的目的。有人可以帮忙解决如何做到这一点吗? O,我也有常用的 jquery javascript,但我不确定是否需要配置。
I would like to take
<form name='bid_range' action='".$action."' method='post'>
<ul>
<p><input type=text name=bid_from size=6 value='' /></p>
<li><input type=text name=bid_to size='6' value='' /></li>
<input type='hidden' name='bid_next' value='".$TPL_next_bid_value."'>
<input type='hidden' name='seller_id' value='0'>
<input type='hidden' name='bid_type' value='range'>
<input type='hidden' name='title' value='".$TPL_title_value."' >
<input type='hidden' name='category' value='".$TPL_category_value."' >
<input type='hidden' name='id' value='".$TPL_id_value."'>
<input type='hidden' name='t_remained_bids' value='".$remained_bids."'>
<input type='hidden' name='auction_type' value='".$auction_type."'>
<input type='hidden' name='form_type' value='".$type."'>
<input type='hidden' name='f5_num' value='".$f5_num."'>
<input type=submit id='subbutton' name='subbutton' value='BID' class='button' style='width:70px;'>
</ul>
</form>
... And turn that code into
<p>
<label for="amount">Price range:</label>
<input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;" />
</p>
For the purpose of a jquery range slider instead of two text fields. Can someone help in how to go around doing this? O, and I also have the usual jquery javascript, but I'm not sure if that is needed to configure.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://jqueryui.com/demos/slider/#range
看看这个。这正是您所需要的。
http://jqueryui.com/demos/slider/#range
Take a look at this. It is exactly what you need.