The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Drag n Drop delete element Re: Drag n Drop delete element


I can’t give unique IDs as they are dynamically generate with the same class. “this” doesn’t work either, as it deletes #trash – not the div. The element I’m dragging is the one I want to delete.

Imagine one of those drag and drop shopping carts – now imagine the item disappears when dropped – that’s what I want to happen.