Bug Tracker

Opened 16 years ago

Closed 16 years ago

Last modified 11 years ago

#1100 closed bug (wontfix)

.hide() does not work on select options in IE

Reported by: olau Owned by:
Priority: major Milestone: 1.1.4
Component: core Version: 1.1.3
Keywords: Cc:
Blocked by: Blocking:


I can't get .hide() to work on a select option object in IE, apparently because of a bug in IE. The option does not disappear. Works fine in Firefox. See http://codylindley.com/Webdev/315/ie-hiding-option-elements-with-css-and-dealing-with-innerhtml for a longer discussion by some other guy.

Change History (3)

comment:1 Changed 16 years ago by olau

FWIW, I managed to hack around this by removing the option with the jQuery select plugin, keeping track of the sort order and then inserting it again at the right place according to the sort order with select.add (which in IE takes an integer instead of a DOM object as the second parameter). Cumbersome, but actually faster than rebuilding the select box (I have many of them so speed is essentiel).

comment:2 Changed 16 years ago by john

Component: fxcore
Resolution: wontfix
Status: newclosed

Reading through the thread on Cody's blog, it's apparent that there isn't any feasible fix for IE. I guess I'll just have to mark this as 'wontfix' :-(

comment:3 Changed 12 years ago by anonymous

@olau - You can just wrap the options in spans instead of adding/removing/cloning. I have an article here, http://work.arounds.org/issue/96/option-elements-do-not-hide-in-IE/

Note: See TracTickets for help on using tickets.