> You don't need to wrap the parameter to not in $(...). Maybe try: > > $("a").not("#nav a").click(function() { alert('...'); return false; });
You know, that's what I thought too, but the "not" selection didn't work at all until I wrapped my NOT selection with $() -- that is, #nav a was still getting the alert onclick. And the too much recursion error appears regardless of whether it's not("#nav a") or not($("#nav a")). Strange, right?