Jump to content

copy input box value to another input box?


kevgais

Recommended Posts

Hi guys,

 

I have form that contains several input boxes. I set the value of the 1st input box like:

 

<input type='text' name='email1[]'value="enter guest email here" />

 

but how can I set the values of other input boxes bases on the 1st input box?

 

something like:

 

<input type='text' name='email2[]'value=email1 />

 

cheers

thanks,

basically on my form I have a hidden input box that upon loading has a random id entered into it.

 

now, on the same form I have 10 username & email textboxes for users to enter their information in, next to each row (username box & email box) i have hidden input boxes that I want to copy the random id into. this way when I send the the data to the mysql database I have the key identifyer.

 

any thoughts?

 

cheers

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.