Question to droppable and hover

Question to droppable and hover


Let there be 2 classes of droppables:
One class accepts green draggables, and hoverclass is set that when a
green draggable is moved over the droppable, its color changes to
green, too.
The other class accepts red draggables, and hoverclass is set that
when a red draggable is moved over the droppable, its color changes to
red, too.
So far, this works fine.
The problem is when a droppable belongs to both classes, its color
should change to red or green depending on the draggable which is
currently hovering over it.
Is it possible to write code which can solve this task?
Thank you for any useful hints you could give me.













    • Topic Participants

    • ims