OLD | NEW |
1 <select id="sel1" disabled="disabled"> | 1 <select id="sel1" disabled="disabled"> |
2 <option selected="selected">FAIL</option> | 2 <option selected="selected">FAIL</option> |
3 <option>PASS</option> | 3 <option>PASS</option> |
4 </select><br> | 4 </select><br> |
5 <select id="sel2" disabled="disabled"> | 5 <select id="sel2" disabled="disabled"> |
6 <option selected="selected">FAIL</option> | 6 <option selected="selected">FAIL</option> |
7 <option>PASS</option> | 7 <option>PASS</option> |
8 </select><br> | 8 </select><br> |
9 | 9 |
10 <select id="sel3"> | 10 <select id="sel3"> |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 var sel8 = document.getElementById("sel8"); | 97 var sel8 = document.getElementById("sel8"); |
98 sel8.selectedIndex = 1; | 98 sel8.selectedIndex = 1; |
99 | 99 |
100 if (sel8.selectedIndex == 1) | 100 if (sel8.selectedIndex == 1) |
101 document.write("PASS: sel8 correctly set to selectedIndex 1 by sel8.selected
Index = 1.<br>"); | 101 document.write("PASS: sel8 correctly set to selectedIndex 1 by sel8.selected
Index = 1.<br>"); |
102 else | 102 else |
103 document.write("FAIL: sel8 set to selectedIndex " + sel8.selectedIndex + " i
nstead of 1 by sel8.selectedIndex = 1.<br>"); | 103 document.write("FAIL: sel8 set to selectedIndex " + sel8.selectedIndex + " i
nstead of 1 by sel8.selectedIndex = 1.<br>"); |
104 | 104 |
105 </script> | 105 </script> |
OLD | NEW |