Weird, weird error on draggable
Answered
- Need more info
- Answered
- Working on it
in Using jQuery UI
•
1 year ago
I have this code:
jQuery("#parents").sortable({connectWith: '#trashcan'}).disableSelection();
jQuery("ul#addSections li").draggable({
connectToSortable: 'ul#parents',
helper: "clone",
revert: 'invalid',
stop: function(event, ui){
alert("dropped");
}
});
That is called after the document is ready(), and the html for the two lists are really simple:
<ul id="parents"><li>Holder!</li></ul>
<ul id="addSections"><li>Drag Me!</li></ul>
It used to work, when i would drop "drag me" on "parents", then it would add that LI to the parents list.
However, it's not working and i'm getting this error in the console: TypeError: Result of expression 'b(this).data("draggable")' [undefined] is not an object.
This is occuring in both safari and firefox (haven't checked IE yet)
Any ideas?
Thanks
1



