Posted By

nveselinov on 10/17/10


Tagged

javascript js bar slider html5


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

trusktr
mmcachran


HTML 5 Slider Bar


 / Published in: JavaScript
 

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>HTML 5 Slider Bar</title>
  5. </head>
  6. <body>
  7. <input type="range" min="0" max="50" value="0" step="5" onchange="showValue(this.value)" />
  8. <span id="range">0</span>
  9. <script type="text/javascript">
  10. function showValue(newValue)
  11. {
  12. document.getElementById("range").innerHTML=newValue;
  13. }
  14. </script>
  15. </body>
  16. </html>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: trusktr on October 17, 2010

Hello, what does this do exactly?

You need to login to post a comment.