Open Jeka-EKB opened 4 years ago
var mySlider = $("#slider").data("ionRangeSlider");
function myreset() {
mySlider.reset();
}
The code works, but there is a problem. Added the filter button (it displays sorted pages) and then RESET resets to the to old values. And how can I make sure that all MIN MAX from TO values are restored ?
Resets to old values but not initial values
Then you need to store original values in a separate variables, and instead of reset()
do slider update({from: x, to: y})
Please tell me how and where to write it? I don't know much about JS and can't do it right.
This question is already not related. You should ask it on StackOverflow, Toster.ru etc.
How do I write a function for the RESET button to reset from and to to the initial settings without overloading the page? Version of IonRangeSlider v2.3.1 I Read the instructions but couldn't find a real answer, I'm just learning JS. Please help with this issue.