Side navigation
#7609 closed bug (invalid)
Opened November 23, 2010 03:46PM UTC
Closed November 23, 2010 03:57PM UTC
Last modified November 23, 2010 04:42PM UTC
attribute selectors can't contain colons
Reported by: | donny.viszneki@gmail.com | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.5 |
Component: | unfiled | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
$('[foo:bar]') doesn't work
If you wish to use any of the meta-characters (#;&,.+*~':"!^$[]()=>|/@ ) as a literal part of a name, you must escape the character with two backslashes: \\\\. For example, if you have an an element with id="foo.bar", you can use the selector $("#foo\\\\.bar").
http://api.jquery.com/category/selectors/