Oksana King Oksana King - 1 year ago 457
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?

Answer Source

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();
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download