Opened 12 years ago
Closed 12 years ago
#6915 closed bug (invalid)
val(#) no longer matches text node of option with a different value attribute
Reported by: | twophayse | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.3 | |
Component: | manipulation | Version: | 1.4.2 |
Keywords: | .val() | Cc: | |
Blocked by: | Blocking: |
Description
Given this markup: <select id="dobmonth"> <option value="01">January</option> <option value="02">February</option> </select>
$('#dobmonth').val($.month_name); Worked in 1.3.2
Now $('#dobmm').val($.month); is needed for 1.4.2
Note: See
TracTickets for help on using
tickets.
Can you reopen the ticket and attach a complete html file with Javascript that demonstrates the problem? Your snippet doesn't define #dobmm and there is no $.month or $.month_name in jQuery.