Forum Moderators: open

Message Too Old, No Replies

change textarea content

         

web_server

6:22 pm on Mar 24, 2006 (gmt 0)



Hi,
I have a a simple form with textarea field and a combobox . I bring the data in both (textarea field + combobox) from the database
I want that when the user chooses one of the combobox options the textarea field changes with it .
any ideas?
thank you .

RonPK

12:31 pm on Mar 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




<form>
<select onchange="this.form.textareaName.value=this.value">
<option>foo</option>
<option>bar</option>
</select>
<textarea name="textareaName"></textarea>
</form>