I've got one div in another div. Both div have a ondrop property. When I move an element in the child's dropzone, it calls the ondrop function twice. One time for the child and then one more for the parent.
My problem is : Even if the drop target is in another drop-target container, I don't want the container to be affected by the dropped element. In other words, I don't want the ondrop event to be fired twice.
Can you help me ?
Thanks, Stefan
You can stop event propagation E.g.
This will stop the propagation of
drop
event to parent elements.P.S. Some code won't hurt.