Why jQuery does not work on my home (local) machine?

The code is ok.

The script is not downloading because, as you probably are not deploying the code, the browser will default to the file:// protocol.

To solve it, add the http: at the script tag:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js">
                                                                           </script>

Leave a Comment