标签: jquery nested-sortable
我正在使用jQuery nestedsortable插件来排序ul列表。但有时我需要禁用并启用它。使用ui可以轻松排序,但无法通过嵌套列表找到方法。
我试图使用:
$("ul").unbind(".nestedSortable");
但是没有办法再次启用它。谢谢你的帮助。
更新 分析插件源代码有帮助。
$(".tree ul").nestedSortable('destroy');
将完全破坏嵌套的可排序实例。