jquery-simple-slider
jquery-simple-slider copied to clipboard
dynamically set data-slider-range
Hello is there a way we can set the data-slider-range dynamically ie on drop down list change????
You can access that in
$(this).data("slider-object");
Check out source - it is possible, but not very intuitive :(
I have customised the slider in order to achieve it
- Add "setRange" Function to public methods
publicMethods = ["setRatio", "setValue",'setRange'];
- Define the "setRange" function ' SimpleSlider.prototype.setRange = function(maxValue) { this.settings.range[1] = maxValue; }; '
- Call this functio as
$('#slider-fsa-contributor').simpleSlider("setRange", 450);