jQuery does not run, but JavaScript does, why?
Hello, this the current code that I have:
- <html>
- <head>
- <title>jQuery Hello World</title>
- <script type="text/javascript" src="jquery-2.1.0.min.js"></script>
- </head>
- <body>
- <script type="text/javascript">
- $(document).ready(function(){
- $("#msgid").html("This is Hello World by JQuery");
- });
- </script>
- <script type="text/javascript">
- document.write("<b>Hello World</b><br><br>");
- </script>
- This is Hello World by HTML
- <div id="msgid">
- </div>
- </body>
- </html>
Now, when I run it, this is what I see:
Hello World
This is Hello World by HTML
Why is the jQuery not executing?