JQuery Draggable Error: Object does not support this property or method

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

IE gives: Object does not support this property or method

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

Using the latest unpacked jquery. 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?

+5
source share
1 answer

You need to enable jQuery UI library .

+9
source

All Articles