Skip to main content

Bug Tracker

Side navigation

#9232 closed bug (worksforme)

Opened May 11, 2011 10:21AM UTC

Closed May 11, 2011 12:39PM UTC

.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:
Description

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

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

Attachments (0)
Change History (2)

Changed May 11, 2011 10:24AM UTC by anonymous comment:1

I'm sorry for formatting.

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

Changed May 11, 2011 12:39PM UTC by addyosmani comment:2

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