powerange
powerange copied to clipboard
How to reset at start value
Hi.. how can i reset slider value at start value.
I have the same issue , do we have a solution for the same ?
You could effect the .range-quantity && .range-handle in the jquery
$('FOO-BUTTON_TO_RESET').click(function(){ $('.range-quantity').css({width:0}); $('.range-handle').css({left:0}); }
Its dirty but it will work for just a simple reset
I did it like this: // initialize var changeInput = document.querySelector('.rangeSlider'); var init = new Powerange(changeInput, { min: 50, max: 150, start: 100, step: 1, hideRange: true });
// and when I need to reset init.setStart(100);