0
我想從接收事件的jQuery-UI可排序列表中移除項目。我想這樣的東西:從jQuery-UI中移除可排序事件接收的項目
receive: function(event, ui){
num_of_items = num_of_items+1;
if(num_of_items >= 3)
{
ui.item.remove();
num_of_items = num_of_items -1;
}
}
這使得錯誤:
Uncaught TypeError: Cannot read property 'options' of undefined
的item.remove()似乎工作在任何其他情況下,如beforeStop罰款,停止等
感謝Gone3d糾正我;) – David