#7963 closed bug (invalid)
selector :hidden select option of select tag elements on IE7
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | 1.next |
Component: | unfiled | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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/
Note: See
TracTickets for help on using
tickets.
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)