I have a problem when I want the steps to increase by 10, starting from 1 to 1000.
The problem is that if the value is 1, the following values ββare 11, then 21, etc. How can this be changed so that it starts with 1, 10, 20, 30, etc., so the first step is 9, then 10 after that.
Sometimes the value can go up to 1001, I figured that if you quickly reach the maximum value, it will stop at 1000, but if you stop at 991, it will go over 1000 if you take the last step.
<p> <label for="amount">Maximum price:</label> <input type="text" id="amount" style="border: 0; color: #f6931f; font-weight: bold;" /> </p> <div id="slider-range-min"></div> $("#slider-range-min").slider({ range: "min", value: 1000, min: 1, step: 10, max: 1000, slide: function (event, ui) { $("#amount").val("$" + ui.value); } }); $("#amount").val("$" + $("#slider-range-min").slider("value"));
http://jsfiddle.net/zwTnY/
source share