[jQuery] None of the tutorials I try work for jquery

[jQuery] None of the tutorials I try work for jquery


I am just starting into jquery and I ham having the hardest trying to
get anything to happen with my code. I have tried several tutorials,
copied and pasted and still nothing happens. What am I missing?
The current code I am trying to get to work is:
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<title></title>
<head>
<script src="traffic/jquery-doc.js" type="text/javascript></script>
<script type="text/javascript">
$(document).ready(function(){
$("a").click(function(event){
alert("Thanks for visiting!");
event.preventDefault();
});
});
</script>
</head>
<body>
<a href="http://jquery.com/">jQuery</a>
</body>
</html>
The <script src="traffic/jquery-doc.js" type="text/javascript></
script> is calling jquery pack 1.3.1 or the latest one available. I
have downloaded it and uploaded it to my web site then renamed it to
"jquery-doc.js"
Supposedly the event.preventDefault(); is meant to prevent the
default event of linking to jquery from happening, but it doesnt. The
alert that is suppose to pop up is not happening either. So what am I
missing?
Thanks a lot