自动填充 [英] auto populate

查看:74
本文介绍了自动填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

javascript。


我有一个像这样的代码,它在表中添加一行,每行有一个inputtext和一个按钮。我想知道我将如何做这个场景:


当我添加5''tdOrdersSerial''和5''tdOrdersMobile''时,当我点击按钮时添加每个'' tdOrdersMobile''输入文本中的值将自动填充''tdOrdersSerial''(索引0到索引5,索引2 - 索引6等)。当我添加另外5''tdOrdersSerial''和5''tdOrdersMobile''时,第一批中的值将不会被删除。


请帮忙。我坚持了很长时间。 :(


感谢和问候

javascript.

i had a code like this, which add a rows in a table, with an inputtext and a button in each row. i want to know how will i do this scenario:

that when i add 5 ''tdOrdersSerial'' and 5 ''tdOrdersMobile'', when i clicked button added in each ''tdOrdersMobile'' the value in the input text will auto populate in the ''tdOrdersSerial'' (index 0 to index5, index 2 - index 6, etc.). and when i add another 5 ''tdOrdersSerial'' and 5 ''tdOrdersMobile'' the values in the first batch will not be removed,.

please help,. im stucked for a long time. :(

Thanks and regards

展开 | 选择 | Wrap | 行号

推荐答案


javascript。


i有这样的代码,它在表格中添加一行,带有inputtext和一个按钮在每一行。我想知道我将如何做这个场景:


,当我添加5''tdOrdersSerial''和5''tdOrdersMobile''时,当我点击按钮添加在每个''tdOrdersMobile''中,输入文本中的值将自动填充在''tdOrdersSerial''(索引0到索引5,索引2 - 索引6等)。当我添加另外5''tdOrdersSerial''和5''tdOrdersMobile''时,第一批中的值将不会被删除。


请帮忙。我坚持了很长时间。 :(


感谢和问候

javascript.

i had a code like this, which add a rows in a table, with an inputtext and a button in each row. i want to know how will i do this scenario:

that when i add 5 ''tdOrdersSerial'' and 5 ''tdOrdersMobile'', when i clicked button added in each ''tdOrdersMobile'' the value in the input text will auto populate in the ''tdOrdersSerial'' (index 0 to index5, index 2 - index 6, etc.). and when i add another 5 ''tdOrdersSerial'' and 5 ''tdOrdersMobile'' the values in the first batch will not be removed,.

please help,. im stucked for a long time. :(

Thanks and regards

展开 | 选择 | Wrap | 行号



现在你得到了什么错误?


Debasis Jana
Now what error you are getting ?

Debasis Jana



i不知道如何实现它。:(


i had no idea how to implement it. :(



i不知道如何实现它。:(
i had no idea how to implement it. :(



请在这里澄清我。

"(索引0到索引5,索引2 - 索引6等)"

这是什么意思?


Debasis Jana

Please Clarify me here.
"(index 0 to index5, index 2 - index 6, etc.)"
What does that mean?

Debasis Jana


这篇关于自动填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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