You don't need to wrap the parameter to not in $(...). Maybe try:

$("a").not("#nav a").click(function() { alert('...'); return false; });

--Erik

On 7/25/07, RwL <[EMAIL PROTECTED]> wrote:


Not sure if this is my code's problem or Firefox's... I don't seem to
be throwing any JS errors in MSIE. Here's what I'm doing:

$("a").not($("#nav a")).click(function() { alert('Sorry, links are
disabled in this demo except those under Profile Navigation.'); return
false; });

The selectors seem to be doing just what I want; the alert gets thrown
as expected, but when you OK the alert Firebug suddenly throws in
anwhere from 15-40 "Too Much Recursion" errors with no other details.

Sorry, I think I should probably be able to solve this with some
Google searches but I'm not quite getting a clear enough picture yet.


Reply via email to