Is there a way to update the value in the span as I slide the bar? Currently the value will update as soon as I let go of the bar but I need it to update as it slides. Is this possible without using jQuery?
Here is a JSFiddle of what I have right now: https://jsfiddle.net/v4d7yoo3/
window.adjust = function(newWidth) {
let ad = document.getElementsByClassName('value')[0];
console.log(ad);
ad.innerHTML = newWidth;
}
<div class="scroll-control-vertical" style="float: left;">
<input type="range" value="100" min="20" max="100" onchange="adjust(this.value)" style="-webkit-appearance: slider-
vertical; transform: rotate(180deg);" />
</div>
<span class="value">100</span>