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.
- <style>#movebox { width: 100px; height: 100px; border: 5px solid black; position: relative;}</style>
- <div id="movebox"></div>
-
- <script>
- $(document.ready(function() {
- $("#movebox").hide(1000);
- })
- </script>
Annoyingly jQuery seems to be working and likes this code
- <script type="text/javascript">
- if (typeof jQuery != 'undefined') {
- $("p").text("jQuery library is loaded!");
- }else{
- alert("jQuery library is not found!");
- }
- </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.