Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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?

irt.org | Knowledge Base | JavaScript | Form | Q1720 [ previous next ]

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?

Try:

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

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

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.