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.
<form name="theform" action="something" method="something" />
<input type="text" name="input1" onkeypress="document.theform.input2.value = this.value" />
<input type="text" name="input2" />
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.
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; ... "
This topic is now closed. New replies are no longer allowed.