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
Post a Comment