2012-04-03 87 views
0

当拖动<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 
    }    
}); 
+0

你能提供你的HTML吗? – andyb 2012-04-03 13:17:07

回答

0

至于建议here
最好是创建一个函数不管它是你想要当李降到做,你只要调用该函数。