Bug Tracker

Opened 12 years ago

Closed 12 years ago

#9232 closed bug (worksforme)

.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:
Blocked by: Blocking:


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

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

Change History (2)

comment:1 Changed 12 years ago by anonymous

I'm sorry for formatting.

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

comment:2 Changed 12 years ago by addyosmani

Component: unfiledmanipulation
Priority: undecidedlow
Resolution: worksforme
Status: newclosed

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/.

Note: See TracTickets for help on using tickets.