Difference between revisions of "Input range test 1"

From Level Access Web Labs
Jump to navigation Jump to search
 
Line 1: Line 1:
 
<html>
 
<html>
 +
<head>
 
<script>
 
<script>
 
   function run(e) {
 
   function run(e) {
     var obj = e.id;
+
//alert(e.target.id);
   obj.setAttribute("aria-valuenow", value);
+
     var obj = document.getElementById(e.target.id);
   obj.setAttribute("aria-valuetext, value);
+
   alert("jon");
+
   obj.setAttribute("aria-valuenow", e.target.value);
 +
   obj.setAttribute("aria-valuetext", e.target.value);
 +
    
 
}
 
}
 
</script>
 
</script>
 +
</head>
 +
<body>
 
<span id="label1"> My label </span>
 
<span id="label1"> My label </span>
<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(event);" 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(event);" 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">
 +
</body>
 
</html>
 
</html>

Latest revision as of 23:19, 10 May 2019

My label