I'm trying to do a tutorial. I did one tutorial and things were great. Moving onto another and I can't get it to work. I'm only posting because I just started this tutorial and things aren't working. When 'Hello World' doesn't work I get frustrated. Anyway, here is my HTML. Nothing special here. I'm expecting a Hello World alert on page load, but I get nothing.
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
alert("Hello World");
});
</script>
</head>
<body>
<h2>My jQuery Test page</h2>
<a href="http://www.google.com">Google</a>
<br>
<a href="http://www.yahoo.com">Yahoo</a>
</body>
The original code was more complex, but it won't work either.
$(document).ready(function() {
$("a").click(function() {
alert("Hello world!");
});
});
ReferenceError: $ is not definedin your console.