in my side, I only did this in Javascript and added an onchange event.
I also added value = 0 to the range so that it starts from the beginning.
<div> <input id="slider" type="range" min="0" max="200" value="0"/> <input id="box" type="text" value="0"/> </div>
var slider = document.getElementById('slider'); var box = document.getElementById("box"); slider.onchange = function(){ box.value = slider.value; }
And add this if you want to make it work on both sides
box.onkeyup = function(){ slider.value = box.value; } โ
Manuel choucino
source share