Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
-6
rated 0 times [  0] [ 6]  / answers: 1 / hits: 114449  / 11 Years ago, wed, may 22, 2013, 12:00:00

Even though I've followed the directions in the jQuery UI documentation, I'm getting the error that .sortable is not a function.

Here is my code:



<div style=float: left;>
<span class=caption style=width: 255px; display: block;>
Assigned Limits
</span>
<div class=assigned-limit-box>
<ul id=limAssigned class=ul-base>
</ul>
</div>
</div>


This is my js:



$('#limAssigned').sortable();


My jQuery js is loaded before my jQuery UI js.



What am I doing wrong?


More From » jquery-ui

 Answers
3

I figured it out. The page that I needed sortable for is loaded into a div within my main page. I had to add the jQuery UI script to that jsp rather than the main page jsp. Funny how that worked out.


[#78087] Tuesday, May 21, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dequant

Total Points: 88
Total Questions: 99
Total Answers: 95

Location: Ukraine
Member since Sun, Dec 13, 2020
4 Years ago
dequant questions
;