saiprasanthi_rl — 2006-10-26T03:45:00-04:00 — #1
I want to copy data from one text box to another in html automatically i.e., if I edit one textbox the other should display the same simultaneously. Can someone help me...
Thanks in advance.
stormrider — 2006-10-26T04:25:32-04:00 — #2
<form name="theform" action="something" method="something" />
<input type="text" name="input1" onkeypress="document.theform.input2.value = this.value" />
<input type="text" name="input2" />
saiprasanthi_rl — 2006-10-26T04:54:06-04:00 — #3
Thanks so much...
at the same time is it possible that we can display the same data in more than one textbox(without using functions)... if so can you just show me an example please.
Thanks once again.
stormrider — 2006-10-26T05:17:25-04:00 — #4
No, i would use a function for that then. You can put multiple commands separated by a semi-colon, but it can get a bit too long sometimes.
onkeypress="document.theform.input2.value = this.value; document.theform.input3.value = this.value; ... "
davewoods — 2006-10-26T08:45:32-04:00 — #5