Page 1 of 1

dropdown menu

Posted: Mon Mar 21, 2005 2:19 pm
by carbine
When i select a value from a dropdown menu I want the following text area in a form to contain a piece of text according to the value selected.

I've tried the onchange attribute for select, but I don't want to change the page-I just want to influence the text displayed in an input area of the form while staying on the same page.

Any suggestions would be greatly appreciated!

Posted: Mon Mar 21, 2005 2:28 pm
by feyd

Posted: Tue Mar 22, 2005 10:01 am
by pickle
You could do something like this:

Code: Select all

onChange = &quote;document.customDiv.innerHTML = 'Updated info';&quote;
-- OR --

Code: Select all

onChange = &quote;document.customForm.customElement.value = 'Updated info';&quote;