Ticket #4568 (closed bug: invalid)
val(value) on select elements only working in IE
| Reported by: | mooglemoogle | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | core | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Updated jQuery to 1.3.2 today and found that any .val(value) on a select box would only work in IE. Firefox, Chrome, and Safari in windows and mac would only allow selection of the first item. Followed the code down to the find function which would only return the first option tag underneath the select when called in the jQuery('option', this) call. Calling jQuery(this).children('option') returns all options as it should. (This probably isn't an optimal solution, i realize but i'm not keen on the inner workings of jQuery and am not sure where to follow the code from that point.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Can you attach a test case? I use this all the time and it works fine, but maybe you have a special case.