开发者

jQuery sortable drop within itself

开发者 https://www.devze.com 2023-02-04 17:46 出处:网络
So my question here is: Can I place a sortable element within another sortable element of the same level. Example:

So my question here is:

Can I place a sortable element within another sortable element of the same level. Example:

<ul class="sortable">
<li class="subsortable">Some text</li>
<li class="subsortable">Some text</li>
</ul>

into:

<ul class="sortable">
<li class="subsortable">Some text<li class="subsortable">Some text</li></li>
</ul>

I've been trying to do this for a day now, and I can开发者_JAVA百科't seem to find a way to do this.


Found the answer myself. The solution here is to create a sortable list, the inner sortable list placeholder and then connecting the two. If anyone needs, I can provide some code examples.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号