Bug Tracker

Ticket #1100 (closed bug: wontfix)

Opened 9 years ago

Last modified 4 years ago

.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:
Blocking: Blocked by:


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

comment:1 Changed 9 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 8 years ago by john

  • Status changed from new to closed
  • Resolution set to wontfix
  • Version changed from 1.1.2 to 1.1.3
  • Component changed from fx to core
  • Milestone changed from 1.1.3 to 1.1.4

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