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
Post a Comment