RE:Javascript GetElementByID [英] RE: Javascript GetElementByID

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

问题描述

嗨伙计,


我设计了一个HTML页面,其中有一个包含5个名字的dop down box。当从下拉列表中选择特定名称时,适当的电子邮件地址应自动设置为包含电子邮件地址的文本框。


以下是代码:请帮助

Hi Folks,

I have designed a HTML page, where i have a dop down box with 5 names. When a particular name is selected from a drop down, an approproiate email address should be automaticallay set to a text box which holds email adresses.

Here is the code below : Please help

展开 | 选择 | Wrap | 行号

推荐答案

如何将电子邮件地址放在选项的值属性中?您可以复制。
what about putting the email address in the option?s value attribute? the you can copy over.
展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号


我正在尝试以下操作,请告知这是否是错误的方法。 />
I am trying the following, please advise if this is a wrong approach.
展开 | 选择 | Wrap | 行号


我做到了,我得到了答案。

I did it, i got the answer.

展开 | 选择 < span class =codeDivider> | Wrap | 行号


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

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