jQuery $(ui.draggable).remove()不使用IE

我可以让IE删除对象,只要它不是当前的可拖动对象。 这适用于Chrome和Firefox。 有什么我做错了吗?

      
  • One
  • Two

Drop items here and they should be removed.

$("#list").sortable({ items: 'li' }); $('#bucket').droppable({ drop: function(event, ui) { $(ui.draggable).remove(); }, accept: '.dropme' });

ui.draggable和drop函数在IE中有点古怪。 试试这个:

        
  • One
  • Two

Drop items here and they should be removed.