2012-04-03 85 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
最好是創建一個函數不管它是你想要當李降到做,你只要調用該函數。