我想删除的拖动属性<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