如何从一个 HTML 表格拖放到另一个表格?

发布于 2024-10-06 16:08:59 字数 159 浏览 5 评论 0原文


我现在正在寻找一些奇迹,因为我的日程安排非常紧张,并且确实需要一个脚本来允许用户将“行”从一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

独自唱情﹋歌 2024-10-13 16:08:59

这需要一些工作,但您可以使用 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.

江湖彼岸 2024-10-13 16:08:59

如果您可以使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文