试试这个,我认为它接近你想要做的。我正在对左侧的列表使用可排序的。你可能不需要。
<table border="1" cellpadding="5">
<tr>
<td valign="top">
<ul id='fList' style='border:1px solid #c0c0c0'>
<li class='fruit'>Apples</li>
<li class='fruit'>Grapes</li>
<li class='fruit'>Strawberries</li>
</ul>
(drag items or panel)
</td>
<td valign="top">
<div id='fish' class='meat'>Fish</div>
<div id='chicken' class='meat'>Chicken</div>
(drop to left list)
</td>
</tr></table>
Sortable.create("fList", {constraint:false})
new Draggable('fish',{revert:true})
new Draggable('chicken',{revert:true})
new Draggable('fList')
Droppables.add('fList',{accept:'meat',onDrop:function(dragName,dropName){placeFood(dragName,dropName)}})
Droppables.add('fList',{accept:'fruit'})
function placeFood(dragName,dropName) {
$("fList").insert(new Element("li", { id: $(dragName).id+"_" }))
$($(dragName).id+"_").innerHTML = $(dragName).innerHTML
Sortable.destroy("fList")
Sortable.create("fList", {constraint:false})
}