Getting Started with HTML5 Drag-and-Drop

blog.kevinchisholm.com

Part IV: Multiple Draggables and Multiple Droppables

Drag any blue square to any light brown box, or back to its original container. Each light brown box in the top row will accept only one blue square at a time. If you want to view the JavaScript for this example, click here.

Drag me!
Drag me!
Drag me!
Drag me!