Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#7963 closed bug (invalid)

selector :hidden select option of select tag elements on IE7

Reported by: paztaga@… Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:


on IE7, if you use $(':hidden') selector, jquery returns option tags of select tag.

On firefox it doesn't.

see test case: http://jsfiddle.net/Xz6wT/3/

Change History (1)

comment:1 Changed 10 years ago by danheberden

Resolution: invalid
Status: newclosed

Thanks for taking the time to submit a bug report :)

Browser visibility can be a bit wonky, as you can imagine. In this case, you're asking for anything not visible, and really, you're getting into the style of select options which can be a pain in the arse. Namely, your issue is also present in chrome because there is no height or width for an option, thus, it's "hidden".

If you're looking to get hidden form elements, better to do input[type="hidden"] (you could do input:hidden, but the former is a faster selector)

Last edited 10 years ago by danheberden (previous) (diff)
Note: See TracTickets for help on using tickets.