Oksana King Oksana King - 8 months ago 212
jQuery Question

Jquery Uncaught TypeError: $(...).draggable is not a function

I am using these links:

<script type = "text/javascript" src = "jquery.min.js"></script>
<link rel="stylesheet"

<script type="text/javascript"

And then this in the script:
$( "#draggable" ).draggable();

It shows an error
is not a function.

Any ideas?


I believe #draggable does not exist when you try to reach it. You might try something like this:

<script type="text/javascript>
    $(function() {
        $( "#draggable" ).draggable();