Search code examples
javascriptjquerycloud9-ide

jQuery is not Runnig


I am working on this code. Why is the jQuery not working here?

I am running the page on Cloud9 IDE online editor and this the code I have before </body> tag:

<script src="http://codeorigin.jquery.com/jquery-1.10.2.js" type="text/javascript"></script>
<script src="js/bootstrap.js"></script>
    <script>
       $(document).ready(function() {
          alert("This is a Test Message");
        });
    </script>

</body>

Here is the list of error on console:

Uncaught TypeError: undefined is not a function bootstrap.js:29
Uncaught ReferenceError: $ is not defined layout.html:48**


Solution

  • Try changing your

    <script src="http://codeorigin.jquery.com/jquery-1.10.2.js" type="text/javascript"></script>
    

    To

    https:// instead of http://