Simple enough code:
$("meta[name=DCSext.Level]")
Error:
Error: Syntax error, unrecognized expression: [name=DCSext.Level]
I upgraded from 1.4.2 to 1.7.1 in Jquery. It obviously still works in 1.4.2.
Any thoughts?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The syntax should be
[name="DCSext.Level"]as specified in the jQuery API. I recommend using single quotes for strings in JS so that you don’t have to escape double-quotes, which I prefer to use for HTML:Although you could continue to use double quotes:
And you could swap the quote usage:
This all of course assumes that the attribute itself is as follows:
If DCSext is a JS object, you’ll need to concatenate it into the string: