How do I change this selector to only call my function if the target does NOT have a specific class on it (‘noscroll’ as shown below)?
$('a[href^="#"]').live('click', navigation.smoothScroll);
<a class="noscroll" href="#">My Link</a>
Something like this (psuedo code):
if (!($this).hasClass('noscroll'))
($this).live('click', navigation.smoothScroll);
You can use
.not()