Update slider.html

This commit is contained in:
steevLP 2022-03-20 13:48:09 +01:00 committed by GitHub
parent 564c9704f6
commit 9b46e672b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,8 +95,7 @@
Use sliders to make an easy range from min to max values
<br><br>
<h2>How to use it?</h2>
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>
You can use normal javascript you would use to read from input fields as done below to get your values.
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>
<input type="range" min="1" max="100" value="0" class="range-slider-rounded" id="slider">
<span>Span Value: </span><span id="output">0</span>
@ -138,4 +137,4 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</body>
</html>
</html>