$(...).draggable is not a function <p>I have got this code:</p> <pre class="lang-js prettyprint-override"><code>$(document).ready( function(){ var potv = $("#FUWTEHOHS").position().top; var spotv = $("#FUWTEHOHS").position().left; $("#TTFTGTHIWW").css("top", potv + 50).css("left", spotv + 450); $(function() { $("#TTFTGTHIWW").draggable(); }); }); </code></pre> <pre class="lang-css prettyprint-override"><code>#TTFTGTHIWW { background: black; border: 1px dashed white; width: 100px; height: 100px; position: absolute; } </code></pre> <pre class="lang-html prettyprint-override"><code>&lt;div id="TTFTGTHIWW"&gt;&lt;/div&gt; </code></pre> <p>But it is not working it gives an error:</p> <blockquote> <p>$(...).draggable is not a function</p> </blockquote>