I have a list like so .
<ul>
<li>Main</li>
<li>
<ul>
<li>Child 1</li>
<li>Child 2</li>
</ul>
</li>
</ul>
I would like to be able to make two sets of sortables one within the the other.
Just like you would drag a fold to another folder or a file to another file an a tree directory. However I JUST NEED it to be sortable within the parent so it should not move outside the parent.
I tried containment but no luck any other suggestions ?
Found a quick solution but I haven’t tested this on a deeper level so bear with me, but theoretically it should work.
Please Note: that the
.draggeris an element within thelielement which is not on the original question.