0

When the dragged <li> is out of the droppable #div1, how can I force the dragged <li> to drop?

$("li").draggable();

$("#div1").droppable({  
    tolerance:'pointer',
    drop:function (event,ui) {
        alert("dropped")
    },
    out:function (event,ui){
        //if out then drop the li
    }               
});
andyb
  • 43,435
  • 12
  • 121
  • 150
user1217380
  • 599
  • 2
  • 8
  • 17

1 Answers1

0

As suggested here
it is best to create a function of whatever it is you want to do when a li is dropped and you just call that function.

Community
  • 1
  • 1
Kristof
  • 3,267
  • 1
  • 20
  • 30