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> |