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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -