javascript - jQuery UI: Set class for draggable when valid -
i know can set class dropable object when valid dragable hovering, using hoverclass. posible that, draggable object (just when hovering on valid target)?
ok, managed using events in dropable:
el.dropable({ accept: ".target", over: function(e, ui){ ui.draggable.addclass("valid"); }, out: function(e, ui){ ui.draggable.removeclass("valid"); }, hoverclass: "valid" });
Comments
Post a Comment