在表javascript中命名克隆的行 [英] naming cloned rows in a table javascript

查看:73
本文介绍了在表javascript中命名克隆的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,


我遇到了这个问题。我不太了解javascript。请大家帮帮我。


我的问题是我克隆了表格中的第一行。克隆之后我想更改克隆单元格的名称。连续我有两个选择按钮和三个文本框。


我的代码是

Hi friends,

I am strugging with this problem.I don''t know much javascript. Please you gurus can help me.

My problem is I cloned the frist row in a table.after cloning i want to change the names of the cloned cells.In a row i have two select button and three text boxes.

My code is

展开 | < span class =codeLinkonclick =selectAll(this);>选择 | 换行 | 行号

推荐答案

嗨...


欢迎来到TSDN ...


i假设您要重命名文本框克隆行中的按钮和按钮? ...因为你必须循环克隆的行。在追加它之前执行此操作...使用变量cloned_row。现在您可以执行以下操作:

hi ...

welcome to TSDN ...

i assume you want to rename the textboxes and buttons in your cloned row? ... for that you have to loop through your cloned row. do this before you append it ... use a variable cloned_row for it. now you can do something like the following:

展开 | 选择 | Wrap | 行号


hi ...


ok ...查看以下改编的代码,应重命名所有文本框(type =" text")和按钮(type =" button")...

hi ...

ok ... have a look at the following adapted code, that should rename all textboxes (type = "text") and buttons (type = "button") ...

展开 | 选择 | Wrap | 行号


Hi Gits,

感谢您的宝贵回复。在我的桌子上,我有两个选择框和三个文本框。我正在附上我的程序。请帮助我...

Hi Gits,

Thank you for your valuable reply.In my table I am having two select box and three text boxes.I am attaching my program with this.Please help me...

展开 | 选择 | Wrap | 行号


这篇关于在表javascript中命名克隆的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆