当被拖动的<li>
超出可放置的#div1
时,如何强制拖动的<li>
放弃?
$("li").draggable();
$("#div1").droppable({
tolerance:'pointer',
drop:function (event,ui) {
alert("dropped")
},
out:function (event,ui){
//if out then drop the li
}
});