Does anyone have any idea why the code below is not working?
<!DOCTYPE html>
<head>
<title> The wonderfulness of JS and jQuery </title>
<meta charset="utf-8">
<script src="http://code.jquery.com/jquery-latest.min.js">
<script type="text/javascript">
function writeIt() {
document.write("jQuery version " + $().jquery + " loaded.");
}
</script>
</head>
<body onload="writeIt()">
Hello
</body>
</html>
It is not displaying the jQuery version. I just came across that piece of code when trying to learn some jQuery and JavaScript and wondering why it is not working for me.
Thanks!