I want to have a list that is sortable, but I also want the elements in that list to be droppable to the divs I have defined as droppable. I can\'t seem to find a way to do
I've spent all day on this, and I've gotten a lot closer, but still not doing as well as I'd like. I now have the functionality I need, but a Javascript error is getting thrown.
The issue is getting the sortable list to return to its previous position if the element is dropped in the droppable, rather than in the list. Currently, I'm saving the html onmousedown, then rewriting the html in the drop function of the droppable. This works, but its giving me a jquery variable is null error. Can anyone find a better solution?
Code:
- One
- Two
- Three
- Four
- Five
- Six
Drop Here