[jQuery] Problem with Tutorials:How jQuery Works
I'm having a problem running the first simple example in this
tutorial. here is my code:
<html>
<head>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("a").click(function(){
alert("Thanks for visiting!");
});
});
</script>
</head>
<body>
<a href="http://jquery.com/">jQuery</a>
</body>
</html>
Seems pretty simple but does not work for me in IE 7, firefox, or
Opera. I am running this in IIS on my XP Pro box. IE just gives me
the error Object Expected.