$(document).ready(function() {
$('#userID option').dblclick(function() {
return !$('#userID option:selected').remove().appendTo('#removeList');
});
$('#removeList option').dblclick(function() {
return !$('#removeList option:selected').remove().appendTo('#userID');
});
});
此方法有效,但轉移到另一個列表的物品不能轉回,但另一個物品列表中的其他物品可以轉回。jQuery不適用於已處理的物品