Bug Tracker

Opened 11 years ago

Closed 10 years ago

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

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 (3)

comment:1 Changed 11 years ago by dmethvin

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

comment:2 Changed 10 years ago by mooglemoogle

Found the problem. Ended up being a conflict with the validate plugin. Sorry for the hassle.

comment:3 Changed 10 years ago by dmethvin

Resolution: invalid
Status: newclosed

Solved, not a jQuery bug.

Note: See TracTickets for help on using tickets.