I'm trying to create range slider and have some problems.. I need create slider with scale of 5 values - 1000, 10 000, 20 000, 30 000 and 50 000. In slider we can click only on these values.
Also I need three inputs which shows input with current value of slider and can be editable, for example - 15 000 - and slider will show correct, and two disabled for editing inputs for match operations.
Here is example what I do
<div id="slider"></div>
<div>
sum_kredit
</div>
<span>$<input id="sum_kredit" /></span>
<div>
year
<input id="year" disabled/>
</div>
<div>
two_year
<input id="two_year" disabled/>
</div>
$("#slider").slider({
range: "min",
value: 1000,
step: 1000,
min: 1000,
max: 50000,
slide: function (event, ui) {
$("#sum_kredit").val(ui.value);
$("#year").val((ui.value)/4);
$("#two_year").val((ui.value)/5);
}
});
$("#sum_kredit").change(function () {
$("#slider").slider("value",this.value);
});
So, help me please with scale and correct showing slider if we type in first input non-default values..
May be it will better use another solutions for this purpose?