dropping an element only into the droppable that i

2019-03-03 17:06发布

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条回答
看我几分像从前
2楼-- · 2019-03-03 17:14

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

查看更多
登录 后发表回答