2つのdivを作成して、最初のdivのクローンを2番目のdivにドラッグアンドドロップしたいとします。問題は、私がそれをドラッグしている間にクローンが消えることですが、一度それが2番目のdivにドロップされると表示されます。jQuery UI:ドラッグ中にクローン要素が表示されない
htmlコード:
<div id="green" class="editable"></div>
<div id="container"></div>
のjQueryコード:事前に
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
ありがとう:また
$(document).ready(function(){
$(".editable").draggable({helper:'clone'});
$(".editable").resizable();
$("#container").droppable({
drop: function(event,ui){
$(this).append($(ui.draggable).clone());
}
});
});
、私は頭のセクションで、以下を含みます。
プランナーを作成できますか? –