So Ive been going through some of the codeacademy stuff on HTML/CSS and Jquery.
Having a bit of trouble trying to get my code to work outside on my local machine.
Here is my HTML
<!DOCTYPE html>
<html>
<head>
<title>Krypton Redux</title>
<link rel='stylesheet' type='text/css' href='stylesheet.css'/>
<script type='text/javascript' src='script.js'></script>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> </head>
<body>
<div></div>
<div style = "margin:10"></div>
<div></div>
</body>
</html>
here is my jQuery
$(document).ready(function(){
$('div').draggable();
});
When I write the jQuery code directly in my HTML file then open it in Chrome, it works. However when doing it in a .js file I get an error saying that '$' is not recognized. Anyone have any idea why?