-2
我有这个代码here及以下...如何使用jquery流畅地显示输入范围的值?
但如何使用jQuery来显示输入范围的流利值?现在它可以工作,但不流利。感谢帮助。
JS:
$("#price").change(function() {
var newValue = $('#price').val();
$("#valuePrice").html(newValue);
$('#block').css({'margin-left':+newValue});
});
HTML:
<div class="filterField">
<label>Price:</label>
<input type="range" name="price" id="price" min="0" max="1000" value="3" />
<div class="rangeValue"><div id="valuePrice">3</div></div>
</div>
<div id="block"></div>
请添加代码... –
我的代码是http://jsfiddle.net/BaEar/165/ ......我把它放到我的问题 – 1001001
http://jsfiddle.net/BaEar/ 166/ –