blob: 0d1798bcdb01442957a86edc9b6932c3b2a52f69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Test result:
<select id="target">
<option>FAIL</option>
<option>PASS</option>
</select>
<script type="text/javascript">
var select = document.getElementById("target");
select.offsetTop;
var opts = select.options;
opts[0].selected = false;
opts[1].selected = true;
</script>
|