I'm trying to reset the slider to initial values when the Reset button is clicked. I have included an html button with the reset function in Js. It works for input and radio fields, but not for sliders.
My reference: http://ionden.com/a/plugins/ion.rangeSlider/start.html Section "using public method".
Also, I don't understand why the slider started to not scroll smoothly. The sliding of the slider is very slow, it seems almost broken.
Sorry, but I'm just a fan and not a pro. So I don't know Js well and don't know how to fix these two problems.
Thanks for the replies.
<!--Range Slider-->
<div id="rng_mass">
<input type="text" class="js-range-mass" id="range_mass" name="range_mass" onchange="calc_tdee()" form="tdecalc"/>
</div>
<div id="rng_def" hidden>
<input type="text" class="js-range-def" id="range_def" name="range_def" onchange="calc_tdee()" form="tdecalc"/>
</div>
<form action="" id="tdecalc">
</form>
<button id="reset" onclick="resetF()">Reset TDEE</button>
function resetF() {
document.getElementById("tdecalc").reset();
document.getElementById("range_mass").reset();
document.getElementById("range_def").reset();
}
