Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Carrying over the form input text values 1

Status
Not open for further replies.

subhavs

Programmer
Nov 27, 2000
54
0
0
US
Hello,

I have an input form with various text boxes. How do I carry over the value of one text box to another text box ? For example - if the user types in the FirstName, I would like the FullName textbox to have the FirstName pre-populated for ease.

TIA !!

- Subha :) Nothing is impossible, even the word impossible says I'm possible.
 
You need a function like this:
Code:
function fillFirstName {
   document.myform.FullName.value = document.myform.FirstName.value;
}
Then on your FirstName text box add
Code:
onChange="fillFirstName()"
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Thanks for your help, tsdragon.

- Subha :) Nothing is impossible, even the word impossible says I'm possible.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top