Click to See Complete Forum and Search --> : Linking two text boxes


rossi
10-30-2003, 10:52 AM
Hi,


Im trying to Link two text boxes text boxes in a form, ie when somebody enters a phone number in the first text form, it automatically enters itself in the second text box.

hope you can help me

thanks for any help

regards

rossi.

gil davis
10-30-2003, 11:04 AM
<form onsubmit="return false">
<input type="text" onkeyup="this.form.copy.value=this.value"><br>
<input type="text" name="copy">
</form>

rossi
10-30-2003, 11:25 AM
i see, but what am i meant to do with it??

need help peps please!

:)

gil davis
10-30-2003, 12:29 PM
You need to explain your request better.

You asked for two text boxes where whatever you enter in the first box shows up in the second box as well. That is what I gave you. If you cut & paste my example into a web page, it will do exactly that.

rossi
10-31-2003, 04:33 AM
sorry,

that was exactly what i needed.

thankyou very much, i dont know where my head was yesterday.

Rossi