How to prevent image disappear when another image is dropped on it

I want to create page where I can move images between divs. I can move images over other divs and back. The problem is that if I move one image over another, the “another” image disappear. I am …


This is my updated and modified script, it works completely, except I would like to universalize it… observe the **** how can I make it so that I don’t have to do function(e){BOX.Draggable.elemen = || e.srcElement; elementDraggable(e); everytime I need to use the dragable function for a different element? Answer Is jQuery an option for you? It makes what you are doing really simple since the code already exists. Demo JavaScript Code