Selecting multiple items with jQuery Sortable()?

南笙酒味 提交于 2019-12-13 13:17:26

问题


I need to drag multiple items simultaneously within a jquery sortable container. In this case, it's a series of nested divs within a parent div which has the sortable() behavior applied. Any suggestions?


回答1:


If you are asking if you can select multiple items (say 1, 3, and 7 in one instance, and 3,4, and 8 in another), I do not believe jquery has a way to do this currently, since the event is tagged to onclick.

On the other hand, if you want to keep certain items grouped (1 and 2 are always together), just put them together in the div.



来源:https://stackoverflow.com/questions/1489226/selecting-multiple-items-with-jquery-sortable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!