jquery拖放 [英] jquery drag and drop
本文介绍了jquery拖放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含行数和列数的表格!
一些元素放在表格单元格中!
这些元素作为一个组互连在一起。
我想拖动每个组的元素,将该组中的每个元素从它们的位置拖放到该表中的另一个位置!
i have a table contain number of row and column!
Some elements placed in table cells!
These elements are interconnected together as a group.
I want to drag elements of each group by drag each element of that group from their place and drop to another place in this table!
推荐答案
这是所有这些都是使用jQuery UI.draggable()
和.droppable()
widget插件的组合完成的:
http://api.jqueryui.com/draggable/ [ ^ ],
http://api.jqueryui.com/droppable/ [ ^ ]。
droppable为draggables提供了一个放置目标,用法在演示示例中说明。
祝你好运,
-SA
This is all done using the combination of jQuery UI.draggable()
and.droppable()
widget plug-ins:
http://api.jqueryui.com/draggable/[^],
http://api.jqueryui.com/droppable/[^].
The droppable provides a drop target for draggables, the usage is illustrated on demo samples.
Good luck,
—SA
这篇关于jquery拖放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文