[jQuery] Re: Alert not working

2007-10-05 Thread elvisparsley
I found the problem in my coding. I forgot to put the first line of the following. $(document).ready(function() { $("a").click(function() { alert("Hello world!"); }); }); On Oct 4, 11:36 am, elvisparsley <[EMAIL PROTECTED]> wrote: > I just started learning jQuery. Could any one help

[jQuery] Re: Alert not working

2007-10-05 Thread Wizzud
You missed a bit of the instruction ... where it says "In the ready function (from the example above), add the following:". So your script should look like this : $(document).ready(function(){ $("a").click(function(){ alert("Thanks for visiting!"); }