I’m a beginner of js. I wanna update a text as long as the value of a slider changes. Since the slider might be changed without click, I decide to use .onchange
to detect if the value of the slider is changed. However, it doesn’t work. The text is only be updated if the change of the slider is made by clicking. I’m wondering if there is a good way to detect any change of the slider? Thanks!
btw I also have tried the .oninput
but I got the same result:(.