Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1720 How can I copy the contents pf a text input form field when the user changes its value to a hidden form field in a different form on the same page?

You are here: irt.org | FAQ | JavaScript | Form | Q1720 [ previous next ]

Try:

<form>
<input type="text" onChange="document.hiddenForm.hiddenField.value=this.value">
</form>

<form name="hiddenForm">
<input type="hidden" name="hiddenField">
</form>

©2018 Martin Webb