[jQuery] My first lessen didn't go well. I need your help.

[jQuery] My first lessen didn't go well. I need your help.


I tried to post this comment before, but it seems it was not listed.
So let me try one more time. This is very simple question, but I, who
is a newbie, can't do it. Please help me.
I put the following code but not alert coming up, instead it goes to
website directly. What am I doing wrong??
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script type="text/javascript" src="jquery-1.2.1.js"></script>
<script type="text/javascript">
// Your code goes here
     $("a").click(function(){
alert("Thanks for visiting!");
});
</script>
</head>
<body>
<a href="http://jquery.com/">jQuery</a>
</body>
</html>