Syntax error, unrecognized expression: [rel*=name:] with jQuery 1.5 and greater

jQuery uncaught exception: syntax error, unrecognized expression [ tabindex=”someword”]

This error was occuring while using the syntax in jquery 1.5 or greater. The syntax seem to be working in jquery 1.4.

Example
Error: Syntax error, unrecognized expression: a[rel=Some text here]
Source File: http://www.somedomain.com/js/jquery/jquery.js?ver=1.8.3

Solution
For the above code Change the syntax from

a[rel=Some text here]

to

a[rel="Some text here"]

Now it works.

Leave a Comment

DON’T MISS OUR GIVEAWAYS!
Subscribe To Newsletter
Subscribe to our newsletter and get all the latest updates offers and giveaways right in your inbox.
Subscribe
Give it a try, you can unsubscribe anytime.
close-link

Join Free Giveaway!

Subscribe to our newsletter to get latest offers and giveaways!
SUBSCRIBE
close-link