I included
<script type='text/javascript' src='script.js'></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
in my index.html header, and script.js is in the same folder as index.html. I have a simple div that is to be resizable in the body section.
script.js has
$(document).ready(function () {
$("div").resizable();
});
very simple.. but when I load index.html on all browsers the div is not resizable. Is the way im including the js file incorrect?
I'm assuming that I should be able to load index.html and just start resizing the div.
UPDATE:
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<link rel='stylesheet' type='text/css' href='stylesheet.css'/>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/themes/ui-lightness/jquery-ui.css"/>
<script src="http://code.jquery.com/jquery-1.9.0.js"></script>
<script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>
<script src='script.js'></script>
</head>
<body>
<div>Resize Me!</div>
</body>
</html>
alert('boo')in script.js. Althrough, you said it is in same folder...