且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用javascript动态添加行

更新时间:2023-12-06 11:06:40

你好,



我可以建议你学习jQuery并学习使用jQuery函数创建HTML元素。

在你的情况下使用jQuery你可以在运行时创建表添加或删除行等,并在按钮的click事件上添加新行。
Hi there,

I can suggest you to learn jQuery and learn to create HTML elements using jQuery functions.
Using jQuery in your case you can create table at runtime add or remove rows etc and add new rows on click event of button..


尝试使用它:如果它有效:

http://***.com/questions/2228772/dynamically-add-remove-rows-in-table-using-jquery [ ^ ]
Try this if it works:
http://***.com/questions/2228772/dynamically-add-remove-rows-in-table-using-jquery[^]