[jQuery] Re: Basic Example not working

2007-07-05 Thread Scott Sauyet
To expand on this just a bit, Shelane used what is perhaps a cryptic syntax here. $(function() { // ... }); could also be written $(document).ready(function() { // ... }); So the code inside this function will now be run when the document is ready, i.e. when

[jQuery] Re: Basic Example not working

2007-07-04 Thread Shelane
You tried wrapping it in a ready function? $(function(){ $("a").click(function(){ alert("ahh"); return false; }); }); On Jul 4, 12:10 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have the following code in my file, the src for the jquery file is > correct. I view the page