タイトルのように、2 つのリスト間の重複を防ぐにはどうすればよいですか。#selected リストでの重複を止めようとしています。受信イベントで完了したと思われますが、運がありません。
$(function () {
$("#options").sortable({
connectWith: $("#selected"),
helper: 'original',
revert: true,
tolerance: "pointer",
});
$("#selected").sortable({
connectWith: $("#options"),
helper: 'original',
receive: function (event, ui) {
},
});
$("#options,#selected").disableSelection();
$("#SkillGroups").change(function () {
$.ajax({
type: "POST",
url: "/Contractor/Contractor/GetSkillsBySkillGroup",
data: { skillGroupId: $("#SkillGroups").val() },
success: function (result) {
$loadList(result);
}
})
});
});