I have several sliders with "from" and "to" values. Each slider's "from" value is based on previous slider's "to" value. My sliders have a problem. When I slide the "to" value, "from" value jumps to the start, at 0. I'm trying to fix it like this:
$("#slider-range-two").slider({
range: true,
min: 0,
max: 1000,
step: 1,
values: [0, 1000],
slide: function (event, ui) {
$('#slider-range-two').slider('option', 'values', '[' + leftValue +', 1000]');
}
});
I want to change slider's values while user drags, but this does not work. How can I fix that?