ToxicBytez ToxicBytez - 7 months ago 11
Javascript Question

JQuery wont load in any browser then Safari

So I was trying a little loading bar but JQuery doesnt load when I try in FireFox & Chrome, it only loads on Safari.
this is my code:

<html>
<head>
<title>Mijn eerste spel</title>
<link href="opmaak.css" rel="stylesheet" type="text/css">
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="code.js"></script>
</head>
<body>
<div id="knop">
<div id="textknop">Gooi Steen</div>
<div id="laadbalk"></div>
</div>
<h1 id="money">$0</h1>
</body>
</html>


and my jq code is:

$(Document).ready(function(){
alert("test")
});


So well in Safari it gives the popup but any other browser just ignores my code.

Answer

Very simple, just change Document to document in javascript code.