【发布时间】:2013-10-16 18:35:20
【问题描述】:
在 html 中,我有一个名为 piles 的 10 个可拖动 divs 的列表和另一个名为 stacks 的 10 个可放置 divs 的列表。每个 pile 都将具有唯一的 id,该 id 将与 stack div 之一匹配。
- 如果 pile 不 与 stack 匹配,则可拖动 div 应恢复到其默认位置。
- 如果堆确实与堆栈匹配,则可拖动的 div 将被放置在该堆栈中。
After the pile has matched the stack when i drag out the matched *pile* from that stack it should automatically reposition to the exact list of *piles**
【问题讨论】:
-
堆与堆栈匹配,可拖动的 div 将放置在该堆栈内。
标签: jquery jquery-ui jquery-ui-draggable