HTML:
<input type = "range" id = "rngIntro" min = "0" max = "5" value = "0">
JavaScript:
document.getElementById("rngIntro").value = "0";
Here is a snippet of my code that basically flushes the rngIntroHTML range slider . It changes the value of this parameter when calling the function, but leaves the physical slider at any value that was previously. So, if the slider was in the far right corner, it would remain there, although the value would change to zero.
What can I do to fix this, does it exist resetinstead .value = "0"?
source
share