Auto Fill Text Field

P

PinkBishop

Hello!

I have a form with several text fields. I would like to give the user
the option to auto fill the next text box with data that they typed
into a previous field. Perhaps by the click of a button or checking a
check box.

TIA
 
P

PinkBishop

Just in case anybody else is looking for this. I found it..

orginal = tex box 1 name
copy - text box 2 name




<input type="text" name="original">
<input type="text" name="copy">
<input type="checkbox" name="checkbox"
onclick="copy.value=this.checked?original.value:'' ">


so...

my code looks more like this...

<input type="textarea" name="Field_One">
<input type="textarea" name="Field_Two">
<input type="checkbox" name="checkbox"
onclick="Field_Two.value=this.checked?Field_One.value:'' ">

Hope this comes in hand for somebody else.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top