Difference between revisions of "Input range test 1"

From Level Access Web Labs
Jump to navigation Jump to search
(Created page with "<html> <span id="label1"> My label </span> <input type="range" id="c80" aria-valuenow="0" aria-valuetext="0" value="5" aria-labelledby="label1" step="1" aria-valuestep="1" min...")
 
Line 1: Line 1:
 
<html>
 
<html>
 +
<script>
 +
  function run(e) {
 +
    var obj = document.getElementById("c80");
 +
  obj.setAttribute("aria-valuenow", value)
 +
  obj.setAttribute("aria-valuetext, value)
 +
}
 +
</script>
 
<span id="label1"> My label </span>
 
<span id="label1"> My label </span>
 
<input type="range" id="c80" aria-valuenow="0" aria-valuetext="0" value="5" aria-labelledby="label1" step="1" aria-valuestep="1" min="0" aria-valuemin="0" max="5" aria-valuemax="5" aria-orientation="horizontal">
 
<input type="range" id="c80" aria-valuenow="0" aria-valuetext="0" value="5" aria-labelledby="label1" step="1" aria-valuestep="1" min="0" aria-valuemin="0" max="5" aria-valuemax="5" aria-orientation="horizontal">
 +
<input onchange="run();" "type="range" id="c80" aria-valuenow="0" aria-valuetext="0" value="5" aria-labelledby="label1" step="1" aria-valuestep="1" min="0" aria-valuemin="0" max="5" aria-valuemax="5" aria-orientation="horizontal">
 
</html>
 
</html>

Revision as of 23:07, 10 May 2019

My label