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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto FIll

Status
Not open for further replies.

danarashad

Programmer
Nov 2, 2006
115
US
Can someone help me with this. I have a couple of form fields, that are the same. Meaning they are using the same data. So if someone types in fieldA, it appears in fieldB as well.

Name Building Name
Name:<input name="fieldA"> Name:<input name="fieldB">

Is it possible for a person to type in fieldA, and it appears in fieldB also.

Thanks
 
what does this have to do with coldfusion?

you have to use javascript

Code:
<input id="fieldA" onkeyup="document.getElementById('fieldB').value = this.value" />

<input id="fieldB" />

something like that.

=========================================
Don't sweat the petty things and don't pet the sweaty things.
 
Coldfusion is a server-side language meaning the code gets processed on the server and served up to the browser.

What you need is a JS solution like NorthStatDA suggested. I just wanted you to understand that CF is not used for this (unless you want to refresh the page after every key press).

____________________________________
Just Imagine.
 
Yeah I know its a server side language, I am just not really versed in javascript. i used northstatda, and it worked. thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top