Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2011
    Posts
    140
    Thanks
    8
    Thanked 0 Times in 0 Posts

    javascript not working, jquery

    JAVASCRIPT (move.js);

    Code:
    <script type="text/javascript">
    $().ready(function()
    {
      $('#ex3').jqDrag('.jqDrag').jqResize('.jqResize');
    });
    </script>

    HTML:

    Code:
    <script src="includes/js/move.js"></script>
    <div id="ex3" class="jqDnR">
      <div class="jqHandle jqDrag"></div>
      <br />
     
     MY DATA
     
     
      <div class="jqHandle jqResize"></div>
    </div>

  • #2
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,355
    Thanks
    11
    Thanked 558 Times in 551 Posts
    It's supposed to be either $(document).ready(function() {...}) or $(function() {...})


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •