jQuery working or not?

jQuery working or not?

Hi all, I have just started using jQuery But I'm not sure if it is working or not. I am trying to hide a dive box as per this tutorial ( https://www.youtube.com/watch?v=hMxGhHNOkCU) but it's not happening - whatever I do.

  1. <style>#movebox { width: 100px; height: 100px; border: 5px solid black; position: relative;}</style>
  2. <div id="movebox"></div>

  3. <script>
  4. $(document.ready(function() {
  5.     $("#movebox").hide(1000);
  6. })
  7. </script>

Annoyingly jQuery seems to be working and likes this code

  1. <script type="text/javascript">
  2. if (typeof jQuery != 'undefined') {
  3.     $("p").text("jQuery library is loaded!");
  4. }else{
  5.     alert("jQuery library is not found!");
  6. }
  7. </script>

Movebox won't hide and I have no idea why. I have tried both of these links on my page:

<script src="jquery-2.1.1.js"></script>


I would be very grateful for any help.