// This obviously should be done by the browser ... [].forEach.call( document.querySelectorAll("input[type='range']"), function(element) { element.addEventListener('input', function(e){ this.setAttribute('value', this.value); }, false); } );