Skip to main content

Bug Tracker

Side navigation

#1100 closed bug (wontfix)

Opened April 05, 2007 08:53AM UTC

Closed July 21, 2007 01:02AM UTC

Last modified March 15, 2012 05:33PM UTC

.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:
Description

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.

Attachments (0)
Change History (3)

Changed April 05, 2007 06:20PM UTC by olau comment:1

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

Changed July 21, 2007 01:02AM UTC by john comment:2

component: fxcore
milestone: 1.1.31.1.4
resolution: → wontfix
status: newclosed
version: 1.1.21.1.3

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' :-(

Changed March 24, 2011 03:17PM UTC by anonymous comment:3

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