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
I am looking for a Javascript code, so that if "Mark" is selected from the drop down box, the text box "Cat_Email" should automatically get set with his email address "XXX".. If Jay is selected then YYY etc.
Please Help..
Thanks in advance.
Regards,
Chandhseke
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
Code:
<td>
<select name="Cat" id="Cat" style="width: 238px">
<option value="Select">Select</option>
<option value="Mark">Mark</option>
<option value="Jay">Jay</option>
<option value="Chris">Chris</option>
<option value="Martin">Martin</option>
</select></td>
<td><input type="text" name="Cat_Email" style="width: 250px" /></td>
I am looking for a Javascript code, so that if "Mark" is selected from the drop down box, the text box "Cat_Email" should automatically get set with his email address "XXX".. If Jay is selected then YYY etc.
Please Help..
Thanks in advance.
Regards,
Chandhseke
Comment