Bug Tracker

Modify

Ticket #6915 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by dmethvin

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

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.

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.