4
The function is working, but I want to update the value in <span>
as I move the mouse. Someone can help?
function mostrarPorcentagem(novoValor) {
document.getElementById("exibePercent").innerHTML = novoValor;
}
<input id="percent" type="range" min="-100" max="100" value="0" onchange="mostrarPorcentagem(this.value)"/>
<span id="exibePercent">0</span>
@Renan believe it is related, but the question emphasizes something else
– Felipe Paetzold