MockY
Programmer
- Jul 7, 2006
- 94
I have looked around and I am now officially giving up trying to code it myself from scratch. I'm very new to JavaScripting and need help.
I have a a simple option list (have removed all styling, values, and names:
<select>
<option>Who Are You?</option>
<option>John</option>
<option>Ryan</option>
<option>Sam</option>
</select>
Below it is a simple <textarea></textarea> box.
What I want to accomplish is depending on the selection, a predefined text will be entered in the textbox. In this case it's an e-mail form and the signature of the sender (the person in the option list) should be displayed automatically when the user selects his name.
How do I go about to do this?
I have a a simple option list (have removed all styling, values, and names:
<select>
<option>Who Are You?</option>
<option>John</option>
<option>Ryan</option>
<option>Sam</option>
</select>
Below it is a simple <textarea></textarea> box.
What I want to accomplish is depending on the selection, a predefined text will be entered in the textbox. In this case it's an e-mail form and the signature of the sender (the person in the option list) should be displayed automatically when the user selects his name.
How do I go about to do this?