What you can do is add an onChange listener to the input which runs a function every time the value is updated. You can then access the new values and use them where needed.
I solve my problem with this code Note: It does not replace the value of the input range value you can use 'onchange="changeFunction()"' for get value input or how you need to get value
<html>
<body>
<h3>How to view range change value.</h3>
<input type="range" id="myrange" value="50" min="0" max="500" oninput="document.getElementById('outputVal').innerHTML = this.value" />
<label id="outputVal"></label>
</body>
</html>