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
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
2 matches
Mail list logo