如何使用查询添加相同的表行?

发布于 2024-09-30 23:52:38 字数 150 浏览 1 评论 0原文

我正在使用 jsp 构建一个表。该表包含 9 列,其中一些列具有使用数据库中的数据构建的组合框。当我单击 AddNewRow 按钮时,我必须生成同一行。在表中,第一列是一个复选框,表示每个行项目的唯一 ID。

我尝试编写代码来解决这个问题,但我没有获得每行的唯一 ID。

I'm building a table using jsp. The table contains 9 columns, some of the columns have combo boxes which are built using data from the database. I have to generate the same row when I click on AddNewRow button. In the table the first column is a checkbox that represents the unique id for each row item.

I tried to write code to solve this problem, but I'm not getting the unique id for each row.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

挽心 2024-10-07 23:52:38
var the_row = $('tr#the_row');
the_row.clone().appendAfter(the_row);
var the_row = $('tr#the_row');
the_row.clone().appendAfter(the_row);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文