Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery Draggable Error: Object doesn't support this property or method

Tags:

jquery

I am trying to add a draggable object to to a simple html page.

IE gives: Object doesn't support this property or method

FF gives: jQuery(".dragthis").draggable is not a function

Using latest jquery unpacked. Here is the code:

<html> 
    <head>
        <script src="jquery.js"></script>
        <script>
            $(document).ready(function () {
                jQuery(".dragthis").draggable();
                jQuery(".drophere").droppable();

            });
        </script>
        <style>
            .dragthis {
            }
            .drophere {
            }
        </style>
    </head>

    <body>
        <div class="dragthis">dragthis</div>
        <div class="drophere">drophere</div>
    </body> 
</html>

What am I doing wrong?

like image 904
Serhat Ozgel Avatar asked Nov 15 '08 14:11

Serhat Ozgel


1 Answers

You need to include the jQuery UI library.

like image 73
nickf Avatar answered Oct 20 '22 09:10

nickf