jQuery的:可排序嵌套列表? [英] jQuery: Sortable nested list?
本文介绍了jQuery的:可排序嵌套列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我建立一个网站,其中有一个亲子寻呼结构。我在寻找到管理网站结构的便捷方式。
i'm building a website which has a parent-child Paging structure. I'm looking for a convenient way to administrate the website structure.
- 我想要的页面为排序
- I want the pages to be sortable
释放jQuery的排序code对我生成的Sitemaps(嵌套UL),不能正常工作...
Releasing the jQuery sortable code on my generated sitemap (nested UL), doesn't work properly...
$('ul.SiteMap ul').sortable();
什么是真正重要的是,它应该的不可以有可能在当前UL之外的排序。有什么建议?
What's really important is that it should not be possible to sort outside of the current UL. Any suggestions?
先谢谢了。
推荐答案
它工作正常的我。我刚分配每个UL进行排序,以一类,然后做了以下内容:
It works fine for me. I just assigned each ul to be sorted to a class and then did the following:
$('.sortableList').sortable();
这篇关于jQuery的:可排序嵌套列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文