Skip to main content

Bug Tracker

Side navigation

#9660 closed bug (invalid)

Opened June 23, 2011 04:37PM UTC

Closed June 23, 2011 04:45PM UTC

Last modified June 23, 2011 05:09PM UTC

jQuery selector "[value=foo]" doesn't work if value set on runtime

Reported by: Owned by:
Priority: low Milestone:
Component: selector Version: 1.4.3
Keywords: Cc:
Blocked by: Blocking:

With jQuery 1.4.2/1.2.6 and others this will work (if "foo" typed by user on runtime):


But with 1.4.3 and higher this doesn't work.

Try it yourself: - this one with 1.2.6 - this one with 1.6

Attachments (0)
Change History (2)

Changed June 23, 2011 04:45PM UTC by timmywil comment:1

component: unfiledselector
priority: undecidedlow
resolution: → invalid
status: newclosed

The value attribute does not stay up-to-date with the current value. It is only responsible for setting the default or initial value. You are thinking of the value property, which cannot be used in a selection. You can do something like this instead:

Changed June 23, 2011 05:09PM UTC by anonymous comment:2


Also, this will allow ''$('input[value=foo]')'' to work -