change content of textarea from select
Hi,
I have these sample strings
test1 = "This is sample string 1.";
test2 = "Sample string 2, present!";
And this:
<select name="blurbselect" onChange="setBlurb(this);">
<option value="0"></option>
<option value="1">Test1</option>
<option value="2">Test2</option>
</select>
Now what I would like to do is that when I select Test1 from the select box, it will put the value of the string in a text area. Now I know that I could put the string value straight in the select, but my strings will be much longer, and I don't want to deal with it that way... Can someone suggest another option?
|