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
  •  | 
  •  

Question

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.

Was it helpful?

Solution

Use sortable instead of draggable/dropable

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top