根据从第一个文本框中提取的值填充第二个文本框 [英] Populate second text box based on value extracted from first text box

查看:83
本文介绍了根据从第一个文本框中提取的值填充第二个文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我必须提取在第一个文本框中输入的值,并根据输入的值填充第二个文本框。

例如:if在第一个文本框中输入的值类似于home / version然后我必须提取在文本框中输入的主页和版本,第二个文本框应该包含home / version以及它应该包含其他说的日期信息home / version /日期。

有人可以帮帮我吗?


谢谢

Hi,
I have to extract the value entered in the first text box and based on the value entered have to populate the second text box.
Eg:if the value entered in first text box is like home/version then I have to extract the home and version entered in the text box and the second text box should contain home/version along with that it should contain additional say date information home/version/date.
Can somebody help me do it?

Thanks

推荐答案

发布什么代码你到目前为止。使用document.getElementById()访问元素后,可以使用value属性获取/设置值 - 请参阅链接


PS。请将来使用好的主题标题。谢谢!
Post what code you have so far. Once you access an element using document.getElementById(), you can use the value property to get/set values - see link.

PS. Please Use a Good Thread Title in future. Thanks!




我必须根据前一个文本框中输入的值填充一个文本框

例如:如果第一个文本框包含abc / efg / hij,则只有当第一个文本框具有abc / efg时,下一个文本框才应包含abc / efg / xyz,否则用户必须将值输入到下一个文本框中。


谢谢
Hi,
I have to populate one text box based on the value entered in the previous text box
eg:if the first text box contains abc/efg/hij then the next text box should contain abc/efg/xyz only if the first text box has abc/efg otherwise user has to enter the value into the next text box.

Thanks


线程合并。请不要双重发布您的问题。谢谢。


主持人。
Threads merged. Please do not double post your questions. Thanks.

Moderator.


这篇关于根据从第一个文本框中提取的值填充第二个文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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