The function is working, however I want to update the value in <span>
as I move with the mouse. Can anyone 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>