Page 1 of 1

automatic form textfield

Posted: Mon Jun 19, 2006 12:52 pm
by alexislalas
i have a menu/list form element with the articles name.
then i have a textfield that is the authors name.


how is it done, that when you select the article the authors name is automatically selected?


thanks

Posted: Mon Jun 19, 2006 12:52 pm
by Benjamin
Javascript

Posted: Mon Jun 19, 2006 2:58 pm
by alexislalas
could you elaborate more, please?

Posted: Mon Jun 19, 2006 3:07 pm
by feyd
Using the onchange event in the <select> you can have Javascript replace the text in the text field. The information to inject if often stored, in one way or another, inside the value attribute of the option selected.

Have a read through devguru's Javascript articles on what's supported.