Modify ↓
Ticket #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: | ||
| 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: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.
Note: See
TracTickets for help on using
tickets.

I'm sorry for formatting.
$("#x\\.x").val("something") // does nothing