Such simple code, why isn’t it working?
When the page loads, it should display an alert box that reads “ready”.
<!DOCTYPE html>
<html>
<head>
<title>
Title
</title>
<script type="text/javascript">
$(document).ready(function() {
alert("ready");
});
</script>
</head>
<body>
Content
</body>
</html>
I feel like it’s something incredibly obvious, but I’m at a point where I can’t think straight.
I’ve tried both in the latest versions of Chrome and Firefox.
Where’s your jquery ref?