How can I create a slider that updates while sliding? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 12

How can I create a slider that updates while sliding?

The normal HTML sliders in combinaton with the onchange attribute only update when the slider is released and not onchange. Is there a way to remove this issue?

16th Dec 2016, 12:56 PM
TheOtherOne
TheOtherOne - avatar
1 Answer
+ 8
do you mean like this ? for computer (mouse) <input type="range" onmousemove="changeValue(this.value)"> for touch screens <input type="range" ontouchmove="changeValue(this.value)">
16th Dec 2016, 6:46 PM
Omar Hasan
Omar Hasan - avatar