<div>
当我将它放在容器上时,我想删除它的拖动属性。但我得到一个错误"Property 'draggable' of object #<Object> is not a function"
,我的代码如下。
$( "#fighter1" ).draggable(); //fighter1 is the id of draggable object
$( "#fighter2" ).draggable();
$( "#fighter3" ).draggable();
$( "#fighter4" ).draggable();
$( "#fighter5" ).draggable();
$( "#fighter6" ).draggable();
$( "#dest" ).droppable({ //dest is the id of droppable object
drop: function( event, ui ) {
ui.draggable("destroy"); //I get error here.
}
});
我使用 jquery ui 版本 1.8.12