Sometimes I have the following links
<a href="#" class="next_link ">Next</a>
<a href="#" class="next_link no_more">Next</a>
But I’m only trying to select the a tags that DOES NOT HAVE no_more inside it. I tried the following but to no avail
$('a.next_link.not(.no_more)').live('click', function (){
$('html,body').animate({scrollTop: $("#dp-products-con").offset().top},'slow');
});
It should be
$('a.next_link:not(.no_more)')Note the
:used beforenot. That is the right way of using it. You were using.notwhich means with a classnot