I managed to get your code working ( I don't know why it wouldn't work earlier ), but I ended up with some new odd behaviour. When I drag an element from one droppable to another, it appears to be leaving an empty <li> instead of removing it.
Code: $(dragged).remove().clone().appendTo('#' + groupID + ' ul').wrap('<li class="character"></li>'); Demo: http://www.ethowin.net/dragTest.htm I noticed I didn't have firebug installed at home, so I'll download it and see if I can find anything... / Fredrik Benjamin Sterling skrev: > > A live version of the script can be found on http:// > <http://www.ethowin.net/dragTest.htm> www.ethowin.net/dragTest.htm > <http://www.ethowin.net/dragTest.htm> > <http://www.ethowin.net/dragTest.htm>. > I tried using your code, but it neither cloned or removed the > dragged element. > > > Hmm... then it probably was not getting an element in correct format, > I will look at you code and see if I see anything. > > Also, the problem is quite random and doesn't seem to happen very > often at all, so perhaps I could iterate through all lists on each > drag/drop, and delete any found duplicates. But that might lead to > some unnecessary overhead when the number or items grows. > > > I agree, there should be better way. > > -- > Benjamin Sterling > http://www.KenzoMedia.com <http://www.KenzoMedia.com> > http://www.KenzoHosting.com