Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pouplate separate form field on key press

Status
Not open for further replies.

emozley

Technical User
Jan 14, 2003
769
GB
If I have two forms on the same page...

<form name="form1">
<input type="text" name="boxa">
</form>

<form name="form2">
<input type="text" name="boxb">
</form>

...is there any way of making what is typed into box a appear in box b as you type. I didn't want to use onkeypress=submit() as there is some other stuff going on on the page that I don't want to lose.

Thanks very much

Ed
 
Hope this helps.
Code:
<form name="form1">
<input type="text" name="boxa" [b]onKeyPress="document.form2.boxb.value=this.value"[/b]>
</form>

<form name="form2">
<input type="text" name="boxb">
</form>

M. Brooks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top