Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
複製された要素をコンテナに追加する方法は次のとおりです。
$(".product").draggable({ helper: 'clone' }); $("#container").append(ui.draggable.clone());
appendは、要素を#containerの最後の要素の後に配置します。ポジションを決めたいです。
before()またはを使用after()して、特定の位置に要素を挿入できます。
before()
after()
$(".product").draggable({ helper: 'clone' }); $("#container #target").after(ui.draggable.clone());