dropping an element only into the droppable that i

2019-03-03 17:30发布

问题:

I have some droppable areas, which are also draggable. It can happen that two or more droppable areas will get behind each other. Is there a way to drop a draggable item only into the area that is in the front? (z-index)

The situation is now, that the item gets added to all the areas, that are overlapping.

Thank you

回答1:

Ok I have now a quite good solution and I want to share it with you guys... I have build a small plugin

https://github.com/vaceta/jquery-top-droppable