Bug Tracker

Modify

Ticket #4568 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

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

comment:1 Changed 4 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 4 years ago by mooglemoogle

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

comment:3 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

Solved, not a jQuery bug.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.