Maybe I misunderstood the question, but Jquery UI has .draggable and .droppable methods http://jqueryui.com/draggable/ http://jqueryui.com/droppable/
You can further augment this with the touchpunch library (http://touchpunch.furf.com/) so that these methods work on mobile devices.