1
You guys, I’m a Javascript beginner.
I’m creating (or trying to create) a range
that passes a value and prints the value as the bar is dragged, and so far everything is working fine.
But the value comes in integer number, and I’ve tried several things and can’t convert that number to real.
This is the script.
The range variable takes the input value range
, and printing makes the obvious kkk prints on tag span
var range = document.getElementById("range");
var impressao = document.getElementById("impressao");
impressao.innerHTML = range.value;
range.oninput = function() {
impressao.innerHTML = this.value;
}
<h2><span id="impressao"></span></h2>
<input type="range" value="500" min="500" max="10000" step="100" id="range">
could someone help me? please!