如何从一个 HTML 表格拖放到另一个表格?
我现在正在寻找一些奇迹,因为我的日程安排非常紧张,并且确实需要一个脚本来允许用户将“行”从一个 HTML 表拖放到另一个表中。在所有“拖放”之后,保存按钮应该只需通过 php 脚本将新删除的项目添加到真正的后端 MySQL!
如果有人可以帮助我,我将非常感激! 干杯! 阿里
I am looking for some miracle right now, since I am on really on a tight schedule and really need a script that would alow users to drag and drop 'rows' from one HTML table to another. And after all the " draggin & dropin' " a save button should simply add the newly dropped items to the real backend MySQL through a php script!
I would really appreciate it if someone out there could help me!!
cheers!
Ali
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这需要一些工作,但您可以使用 jQuery UI 来实现:
http:// /jqueryui.com/demos/sortable/#connect-lists
它提供了拖放、排序和事件,用于将新列表内容发送到您的脚本。
It'll take a bit of work, but you can probably use jQuery UI for this:
http://jqueryui.com/demos/sortable/#connect-lists
It provides dragging, dropping, sorting and events for sending the new list contents to your script.
如果您可以使用 jQuery,则无需重新发明轮子。
http://jqueryui.com/demos/sortable/
它拥有您开始使用所需的一切。查看连接 2 个列表。
If you can use jQuery you don't need to reinvent the wheel.
http://jqueryui.com/demos/sortable/
It has everything you need to get going. Check out connecting 2 lists.