Please see my source code at: http://jsfiddle.net/rAmSG/9/
The blue item should be dropped at an of the other 3 divs. This already works correctly. But I want to have a effect when the blue item is over one of the other divs (and the mouse is not released yet). The corresponing div should be colored grey (but only the smallest div, like the drop behavior).
Does anyone have a suggestion how to do this?
Also I’m not able to get the ‘hoverClass’ settings working, any solutions for this too?
Thanks in advance!
You have problems with
hoverClassbecause you’re defining a background color for the droppable elements using an id selector, and that rule takes precedence even when you apply thedarkclass to the elements.You can increase the
.darkrule’s priority with!important:Then you can use
hoverClassas expected:You will find an updated fiddle here.