This is my javascript code
$(this).find('a:internal:not(.no-ajaxy)').on('click',function(evt) {
evt.preventDefault();
History.pushState(null, $(this).text(), $(this).attr('href'));
});
and this is the link I am trying to not apply ajax on
<a href="#loginModal" class="btn btn-success no-ajaxy" data-toggle="modal">Login ››</a>
The problem here is that my script gives me this error
Uncaught Error: Syntax error, unrecognized expression: unsupported pseudo: internal
I am currently using jQuery v1.8.3
From your comments, it sounds like you simply need to use the following:
$(this).find('a:not(.no-ajaxy)').on('click', function() {
// your code...
});
:internal
is not a selector available by default in jQuery.