I am trying to get live output from an HTML5 input range slider into a javascript variable. Right now, I'm using <input type="range" id="rangevalue" onchange="arduino()">
The way I work does what I want, but it does not "live." I want it to be while you drag the slider, it updates the variable and not only after you release it. For example: when I drag the slider from 1 to 5, I want the variable to be updated during the drag, so it will be updated from 1,2,3,4,5 and not only go from 1 to 5 times. I release the slider.
Can this be done? Any recommendations? I used the jQuery slider plugin, but it was not compatible with touch, which fixed its purpose.
Thanks for the help!
EDIT - I didnβt have to explain well, I know how to get the value of the range slider, I just want to get a βliveβ output from it.
source share