jquery - unrecognized expression a[href=javascript:void(0)] -


i'm used jquery 1.10.2 , on 1 page there error

uncaught error: syntax error, unrecognized expression a[href=javascript:void(0)]

in developer tools show error in first line jquery library

instead of:

$('a[href=javascript:void(0)]');

you need add quotes surrounding value of attribute:

$('a[href="javascript:void(0)"]');


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -