jquery-simple-slider icon indicating copy to clipboard operation
jquery-simple-slider copied to clipboard

dynamically set data-slider-range

Open priteshgr81 opened this issue 11 years ago • 2 comments

Hello is there a way we can set the data-slider-range dynamically ie on drop down list change????

priteshgr81 avatar Jul 03 '13 12:07 priteshgr81

You can access that in $(this).data("slider-object"); Check out source - it is possible, but not very intuitive :(

wolendranh avatar Mar 18 '16 14:03 wolendranh

I have customised the slider in order to achieve it

  1. Add "setRange" Function to public methods publicMethods = ["setRatio", "setValue",'setRange'];
  2. Define the "setRange" function ' SimpleSlider.prototype.setRange = function(maxValue) { this.settings.range[1] = maxValue; }; '
  3. Call this functio as $('#slider-fsa-contributor').simpleSlider("setRange", 450);

benbinesh avatar Dec 07 '17 04:12 benbinesh