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

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -