Page 1 of 1

adding values to text boxes

Posted: Wed Aug 07, 2002 10:57 pm
by wickedbob
i want to add some text from one text box in a form into a second text box in a different form (same html page). i want this text to be added at the end of what is already contained in the second text box.
does anybody know the correct syntax for achieving this in javascript code?

i envision that it would be something similar to:
document.form2.textbox.value=(document.form2.textbox.value+document.form1.textbox.value);

but i have the feeling that this is not correct.
any ideas?

BoB.

Posted: Thu Aug 08, 2002 7:40 am
by Geschi
Did you give it a try? For me it looks allright, though you have to commit the text in fórm 1, of course.

Posted: Thu Aug 08, 2002 3:05 pm
by wickedbob
scary spice!

i tried it and it worked.
my javascript skills must definitely be getting better.

8O

BoB.