Skip to main content

Bug Tracker

Side navigation

#8309 closed bug (duplicate)

Opened February 18, 2011 01:24AM UTC

Closed February 19, 2011 12:31AM UTC

Last modified February 19, 2011 12:31AM UTC

The selector with [value=Assign To] causes an exception

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


   $("div.messageControlBar > input[value=Assign To]").live("click", AssignToShow);

Exception throw is Uncaught Syntax error, unrecognized expression: [value=Assign To] at line 3583.

It doesnt seem to allow the [value=Assign To] however it worked with previous versions of jQuery.

Attachments (0)
Change History (3)

Changed February 18, 2011 01:29AM UTC by anonymous comment:1

Created a item in jsFiddle where you can see v1.4.4 works changing the button to red, but in v1.5, it doesn't


Changed February 19, 2011 12:31AM UTC by jitter comment:2

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

Thanks for taking the time to contribute to the jQuery project by writing a bug report.

This isn't a bug. Your selector isn't and never was valid, if this worked in earlier jQuery version it was actually a bug that got fixed.

Check this test case which shows that your selector isn't a valid CSS selector and that you need to enclose the attribute value in quotes. So that I don't need to repeat my self also check this comment

Changed February 19, 2011 12:31AM UTC by jitter comment:3

Duplicate of #8229.