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