How do I copy the name inputed in the text field- automatically into the disabled area. For example, I'm typing "Sarah" in the text field, and I want it to say "SaraH" in teh disabled- read only field- on the form.
How do I do this? What function would enable me to do this? Please reply ASAP! i really need help= as this is a part of my assignemnt! thank you
msi_333
Question subject: Re: Java- Copy text area into disabled text area
Posted: Thu Jun 09, 2011 3:38 pm
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
you can use javascript :
for example
Code:
<HTML> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Beginning of JavaScript - function myfunction () { document.getElementById('mytest').value= ' your message '; // do something. } // - End of JavaScript - --> </SCRIPT> </HEAD> <BODY>
<TEXTAREA id="mytest" /> <INPUT id="text" TYPE="text" VALUE="Change me" onchange="myfunction()">
</BODY> </HTML>
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )