Jquery UI中的连接嵌套列表可排序

Ey老兄,请看看这个小提琴: http : //jsfiddle.net/HG8k6/ 。

$(document).ready(function () { $("ul.containers").sortable({ axis: 'y', placeholder: "ui-state-highlight", forcePlaceholderSize: true }); $("ul.containers").disableSelection(); $("ul.rows").sortable({ axis: 'y', placeholder: "ui-state-highlight", forcePlaceholderSize: true }); $("ul.rows").disableSelection(); }); 

它在某种程度上工作正常,我有容器和行,我可以完美地移动它们,但我真正想要实现的是在容器之间移动行,例如将Row5从Container2移动到Container1。 在此先感谢南美哥伦比亚的问候!

使用connectWith:'.rows'更新小提琴