so I followed an HTML5 drag and drop example here:
http://www.html5rocks.com/en/tutorials/dnd/basics/#toc-dataTransfer
and created the following code
The problem is, I want to be able to essentially swap the entire element, and its data attributes, not just the inner html. How do I do this?
You could just swap the elements themselves, not serializing and reparsing new elements.
http://jsfiddle.net/Vk5zT/11/