Modify ↓
Ticket #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: | |
| Blocking: | Blocked by: |
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
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.
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.