Reputation: 88207
I was following HTML5 Drop & Drop tutorial from HTML5 Rocks. However I wanted to drop not on another draggable element, but a dynamically added div
in between the draggable elements. Here's my try.
When I hover over the "droppable" divs nothing happens
Also how can I position my dynamically added drop targets so that they dont move my original elements?
Upvotes: 0
Views: 1431
Reputation: 193271
It has something to do with event binding to the newly created targets. Check my variant of your code. http://jsfiddle.net/TVYvg/2/
Upvotes: 1