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 -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -