I have 3 different jQuery droppables.
$(".pages").droppable({
accept: ".draggable"
});
<div id="droppable1" class="droppable" style="height: 300px; width: 300px;"></div>
<div id="droppable2" class="droppable" style="height: 300px; width: 300px;"></div>
<div id="droppable3" class="droppable" style="height: 300px; width: 300px;"></div>
I have one jQuery draggable that I'm using clone with
$(".draggable").draggable({
helper:'clone'
});
<div id="draggable" class="drag-box ui-widget-content">
<p>Drag Me</p>
</div>
If I move my draggable into droppable 1, I need to be able to attach/append the clone it creates inside droppable 1 so that it reads..
<div id="droppable1" class="droppable" style="height: 300px; width: 300px;">
<div id="draggable" class="drag-box ui-widget-content">
<p>Drag Me</p>
</div>
</div>
However, if I were to move it from droppable1 containment area into droppable2's then it would move it under droppable2, without actually deleting the element of course, to read like...
<div id="droppable1" class="droppable" style="height: 300px; width: 300px;">
</div>
<div id="droppable2" class="droppable" style="height: 300px; width: 300px;">
<div id="draggable" class="drag-box ui-widget-content">
<p>Drag Me</p>
</div>
</div>