阅读背景:

如何使用jQuery向表中添加新行,并为其添加递增ID

来源:互联网 

I have an existing HTML table, part of a form where the user enters GPS points. The user also has the option to upload GPS data points. I'd like to have a button the user can press where some Javascript will add one or more new rows to the table, but the new row(s) must continue incrementing the name and id values used in the table. E.g. if the last row had a name="x5", the newly inserted row should have name="x6" etc.I have an existing HTML table, part of a form w




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: