Update slider.html

This commit is contained in:
2022-03-20 13:50:55 +01:00
committed by GitHub
parent e147d34697
commit 47e7d8ed68

View File

@ -98,7 +98,7 @@
As seen in the example this is one of the rare occurrences where you will need to use javascript to get values from the input. As seen in the example this is one of the rare occurrences where you will need to use javascript to get values from the input.
<br><br> <br><br>
<input type="range" min="1" max="100" value="0" class="range-slider-rounded" id="slider"> <input type="range" min="1" max="100" value="0" class="range-slider-rounded" id="slider">
<span>Span Value: </span><span id="output">0</span> <span>Slider Value: </span><span id="output">0</span>
<script> <script>
var slider = document.getElementById("slider"); var slider = document.getElementById("slider");
var output = document.getElementById("output"); var output = document.getElementById("output");