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