Why loading in jquery does not work

advertisements

I have this very simple code in jQuery(I am a starter), and I don't know why its not working even though I did it according to the book:

    <!DOCTYPE html>
     <head>
     <script src="jquery-1.9.1.min.js"></script>
      <script>
        $( document ).ready(function() {
            $("#top").load("welcome.html");
                    $("#hyber").load("spring.html");
            $("#disc").load("csi232.html");
        });
          </script>
     </head>
     <body>
     <div id="container">
        <div id="top">
        </div>
        <div id="hyber">
        </div>
        <div id="disc">
        </div>
      </body>
      </html>


Try replacing your

<script src="jquery-1.9.1.min.js"></script>

by this

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

This imports the library directly from internet. Good Luck!