Here is my code so far: https://jsfiddle.net/v3Lbjmes/43/
For the life of me, I can't figure out a way to drag from the top sortable list into the draggable area and from the draggable area to the sortable list.
HTML:
<div class="sort">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>
</div>
<div class="clear"></div>
<hr>
<div class="drag">
<div class="item">5</div>
</div>
CSS:
.item{
border-style: solid;
float: left;
width: 100px;
height: 100px;
margin: 2px;
background-color: #FFF;
}
.clear{
clear: both;
}
.drag{
width: 100%;
height: 300px;
}
JS:
$(document).ready(function(){
$(".sort").sortable();
$(".drag .item").draggable({
containment : '.contain',
connectToSortable : '.sort'
});
});
I see there is support from draggable to sortable with connectToSortable but can't even get that to work!
Thanks for the help