Hello, i have to learn JQuery. Here is the first sample from their tutorial:
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
alert("Thanks for visiting!");
});
</script>
</head>
<body>
<a href="http://jquery.com/">jQuery</a>
</body>
</html>
It doesn't work. After loading page i don't see any popups. I tried code:
window.onload = function() { alert('...'); }
It works, but that example doesn't, why?
P.S. I've downloaded jquery and copied it to the current dir of page.