jquery - script.js upload on site -


i have finished project in code academy. try upload site. save each file folder index.html, style.css , script.js, enter image description here when open index.html looks script.js not work. site don't have interactions.

code:

<head>    <link type="text/css" rel="stylesheet"  href="stylesheet.css"/>    <script type="text/javascript" src="script.js"></script>    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js">          </script>    <title>result</title> </head> 

and thing should works. upload file free server still dont work. http://www.battleship-dariusz-plichta.cba.pl/ should change?

you need include jquery code after including jquery before jqueryui:

<head>    <link type="text/css" rel="stylesheet"  href="stylesheet.css"/>    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>    <script type="text/javascript" src="script.js"></script>    <title>result</title> </head> 

at moment not appear including jquery @ (just jqueryui, which addition jquery).

if display website in chrome's f12 debugger see:

uncaught referenceerror: $ not defined script.js:696 uncaught referenceerror: jquery not defined jquery-ui.min.js:5 uncaught typeerror: cannot read property 'length' of undefined  

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -