View Single Post
  #1 (permalink)  
Old April 10th, 2007, 02:10 PM
darkhalf darkhalf is offline
Friend of Wrox
Join Date: Mar 2004
Location: Ottawa, , Canada.
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts
Default change content of textarea from select


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>

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?

Reply With Quote