Answers for "javascript change the number of range on change"

0

javascript change the number of range on change

<span id="valBox"></span>
<input type="range" min="5" max="10" step="1" onchange="showVal(this.value)">
<script>
const showVal = (newVal) => {
    document.getElementById("valBox").innerHTML=newVal;
};
</script>
Posted by: Guest on February-23-2021

Code answers related to "javascript change the number of range on change"

Browse Popular Code Answers by Language