54
rated 0 times
[
59]
[
5]
/ answers: 1 / hits: 63472
/ 15 Years ago, wed, february 24, 2010, 12:00:00
ok, heres some sample code that demonstrates the problem.
if i click the button in firefox, the first option disappears.
if i click the button in chrome, nothing happens, or rather if i inspect the first option, it does have the attribute style='display:none' but the option itself on the html page is not hidden.
<form>
<select>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
<input type=button onclick=document.getElementsByTagName('option')[0].style.display='none' value=hide option 1>
</form>
why doesn't this work in chrome?
More From » firefox