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
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!");
}
2 matches
Mail list logo