Difference between revisions of "Input range test 1"

From Level Access Web Labs
Jump to navigation Jump to search
Line 2: Line 2:
 
<script>
 
<script>
 
   function run(e) {
 
   function run(e) {
     var obj = document.getElementById("c80");
+
     var obj = e.id;
 
   obj.setAttribute("aria-valuenow", value);
 
   obj.setAttribute("aria-valuenow", value);
 
   obj.setAttribute("aria-valuetext, value);
 
   obj.setAttribute("aria-valuetext, value);
Line 9: Line 9:
 
</script>
 
</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 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">
 
<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">
 
<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:10, 10 May 2019

My label