How do I get the value of a slider to update in real-time?
问题 I have an HTML video tag with a customized control bar and in it I want both the seek bar and volume bar to update their values in real-time as the user scrubs through the range. Currently the volume updates after the user adjusts the slider and not while the user is clicking-and-dragging. In HTML I have them set up as such: <div id="video-controls"> // ... <input type="range" id="seek-bar" value="0"> <input type="range" id="volume-bar" min="0" max="1" step="0.01" value="1"> // ... </div> And