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!
dropdown menu
Moderator: General Moderators
You could do something like this:
-- OR --
Code: Select all
onChange = "e;document.customDiv.innerHTML = 'Updated info';"e;Code: Select all
onChange = "e;document.customForm.customElement.value = 'Updated info';"e;Real programmers don't comment their code. If it was hard to write, it should be hard to understand.