jQuery UI Droppable not accepted event -


ui droppable project, detect opposite accepted event.

i mean if drag , drop not accepted container action, far haven't found way detect it.

found out using revert option draggable event can solve it.

$("selector").draggable({     revert : function(droppablecontainer) {             if(droppablecontainer) {                 // drop valid             }else {                 // drop invalid             }             return(!droppablecontainer) //returns draggable original position         }    }); 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -