How do I make a bunch of different draggable/droppable elements droppable to each other? [closed]

StackOverflow https://stackoverflow.com/questions/21841884

  •  13-10-2022
  •  | 
  •  

I have a bunch of elements(lets say "div A", "div B", and "div C"), and they're all draggable and droppable. They all accept draggable elements from the initial div("div A") that the elements are inside. Then I can drag them back to "div A" if they are in "div B" or "div C".

However I can't figure out how to make it so I can drag from "div B" to "div C", or vice versa. Whenever I try to add that code it just messes everything up.

有帮助吗?

解决方案

Use sortable instead of draggable/dropable

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top