[jQuery] just started using jQuery today
I was following the training, and .. stucked on the very begining of
the page.
<html>
<head>
<script type="text/javascript" src="jquery-1.2.6.js"></script>
<script type="text/javascript">
$(document).ready(function(){
alert("hello");
});
$("a").click(function(event){
alert("Thanks for visiting!");
event.preventDefault();
});
</script>
</head>
<body>
<a href="http://jquery.com/">jQuery</a>
</body>
</html>
The message "hello" appear when the page is opened, but nothing
happens when I click the link.