Previous Message
Next Message

Styling option tag

Sent by Aaron Wheeler on 19 November 2004 18:06


Is there a way with CSS to hide options from select dropdowns in IE?

In Mozilla, the following works:

<select>
  <option>1</option>
  <option style="display:none;">2</option>
</select>

But the style is ignored by IE.

I know how to remove the option completely with JavaScript, but I was
hoping to use CSS so that replacing a "removed" option would easily
place it back in the list in the original order.

Thanks for any insight,

Aaron Wheeler
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: