javascript - jQuery not working offline still after downloading the jQuery library -


i have downloaded jquery library , put html,css , javascript files in same folder.but still not working.following code

$(document).ready(function() {    $('button').click(function() {      $('div').fadeout('slow');    });  });
div {    height: 100px;    width: 100px;    display: inline-block;    background-color: green;    border-radius: 5px;  }
<html>    <head>    <link rel="stylesheet" type="text/css" href="x.css" />    <script type="text/javascript" src="jquery-1.11.3.min.js"></script>      <body>      <div>        <button>good</button>      </div>    </body>    </html>

you need add own js file:

<html> <head>  <link rel="stylesheet" type="text/css" href="x.css"/>  <script type="text/javascript" src="jquery-1.11.3.min.js"></script>  <script type="text/javascript" src="your-js-file.js"></script> </head>  <body>   <div>    <button>good</button>   </div>  </body> </html> 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -