Bug Tracker

Modify

Ticket #9232 (closed bug: worksforme)

Opened 2 years ago

Last modified 2 years ago

.val() is not worked for <select id="x.x"></select>

Reported by: anonymous Owned by:
Priority: low Milestone: 1.next
Component: manipulation Version: 1.4.4
Keywords: Cc:
Blocking: Blocked by:

Description

It is worked fine for <input id="y.y" /> but not for selects.

$("#x
.x").val("something") does nothing

Change History

comment:1 Changed 2 years ago by anonymous

I'm sorry for formatting.

$("#x\\.x").val("something") // does nothing 

comment:2 Changed 2 years ago by addyosmani

  • Priority changed from undecided to low
  • Resolution set to worksforme
  • Status changed from new to closed
  • Component changed from unfiled to manipulation

Thanks for submitting a ticket to the jQuery project. This is working fine with jQuery 1.6 and above. Please see here for a test case demonstrating how to correctly use this:  http://jsfiddle.net/CNXxF/1/.

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.