I have two sliders, and I would like to update the range of one slider based on the movement of the other.
For instance; slider_1 and slider_2 have a range of 1-10. When I move slider_1 from position 1 to 2, the range of slider_2 changes from 1-10 to 1-20. If I move slider_1 from position 2 to 3, now slider_3 has a range from 1 to 30, etc.
I initialize the slider as follows:
function slider() { $(".slider").noUiSlider({ orientation: "horizontal", start: [0], range: { min: 0, max: 10, }, connect: 'lower', direction: "ltr", step: 1, }); };
The best way I can start implementing this so far is to parse the entire slider and reinitialize it with a new range every time. However, I'm not sure how to deconstruct the slider correctly.
Any ideas on how to do this?
Dgdd source share