jQuery UI - Draggable is not a function?

Posted by Dan on Stack Overflow See other posts from Stack Overflow or by Dan
Published on 2010-05-24T09:17:24Z Indexed on 2010/05/24 9:21 UTC
Read the original article Hit count: 387

Filed under:
|

Hi,

I've trying to use the draggable effect on some divs on a page, but whenever I load the page, I get the error message:

Error: $(".draggable").draggable is not a function

I've had a look around it seemed other people were having this problem as they had not included the jQuery UI javascript file, but I definitely have.

The following is within the head tag of my page:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js" type="text/javascript"></script>    
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script>

Can anyone suggest a solution?

Any advice appreciated.

Thanks.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about draggable