Forums
This topic is locked
Copying text from one text box to another
Posted 22 Mar 2002 20:45:16
1
has voted
22 Mar 2002 20:45:16 Mark Drelinger posted:
I would like to set the value of a 2nd text box equal to the typed in value of a 1st text box when the first text box changes. Any ideas? I'd be willing to buy a extension that did this. Replies
Replied 22 Mar 2002 21:48:14
22 Mar 2002 21:48:14 Owen Eastwick replied:
Use a JavaScript Function:
<script language="JavaScript">
<!--
function CopyText(){
document.FormName.Textfield2.value = document.FormName.Textfield1.value
}
//-->
</script>
Then modify the textfield tag:
<input type="text" name="Textfield1" onKeyUp="CopyText()">
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
<script language="JavaScript">
<!--
function CopyText(){
document.FormName.Textfield2.value = document.FormName.Textfield1.value
}
//-->
</script>
Then modify the textfield tag:
<input type="text" name="Textfield1" onKeyUp="CopyText()">
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo