Click to See Complete Forum and Search --> : The horror, the horror: form fields


Daot Lagorille
08-13-2003, 11:36 AM
Hi gang,

Need help:

Can anyone point me to a javascript sample that does this:

If a text field or menu gets something entered in it (like "onChange"), then it will set the value of a specified hidden field to something like "true".

Yours in bloodshot-eyed anticipation,

DlaG

Khalid Ali
08-13-2003, 11:51 AM
<input type="text" onchange="document.formName.hiddenFieldName.value=this.value">

give it a shot..:D

Daot Lagorille
08-13-2003, 12:07 PM
Thank you most kindly, my fellow Canadian (I am from Ontario). Your script works well, and looks great in a ****tail dress.

With mixed blessings,

DlaG

Khalid Ali
08-13-2003, 12:23 PM
my pleaure :D