draggable is not a function
Hi everybody!
I developed a script some weeks ago using jQuery UI and now I'm going to create it's the new version.
The problem is that if I import jQuery UI from Google Developers CDN or from local (loaded into the server), draggable function returns in Chrome
"
Uncaught TypeError: undefined is not a function script1.0.js:17(anonymous function) script1.0.js:17
"
or, in Firefox 31,
"
TypeError: $(...).draggable is not a function
"
The script, 'til now, check if jQuery and jQuery are available by Javascript-Pure code. Else it import them.
Then I append the jquery-ui.min.css and my css file. Then I must let all the elements being draggable... and there's the error.
Here below the script:
Does someone know why i get this error?
Thank at all.
EDIT - SOLVED:
I solved with this:
$(function() {
$("*").draggable();
});
But it was written nowhere in documentation.