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

Need help on automatic mirror textbox or duplicate text box

Status
Not open for further replies.

kimly

MIS
Jul 11, 2000
7
US
Hi,
Does anyone know how to mak a mirror or duplicate textbox.
For example, I have two textbox that are identical except its names. If I put numbers or words on the first textbox the 2nd one will Automatically showed up at the same time?

I wonder if it is possible. Please message me if you have any ideas.

Thanks

Kim ( kimly2002@hotmail.com ) [sig][/sig]
 
There is no function like this in dw3 but if u want u can create one

use the onChange event and then set the values of the textboxes to show each other

here is how
Code:
 <input type=&quot;text&quot; onChange=&quot;sendval()&quot;>

 <script language=&quot;javascript&quot;>
  function sendval() {
   document.formname.text2.value =document.formname.text1.value
  }
 </script>
[code]
 (it should work i have not tested it so no assurances)
  the onChange event will be fired when the other text box gets focus please change the names of the text box and the 
 form name to suite as per ur form

 hope this helps 
 if it does pls post so
 or tell me the error
 i will try to help

 ::-)
 regards

 
 [sig]<p>Unicorn11<br><a href=mailto:webmaster@tripmedia.com>webmaster@tripmedia.com</a><br><a href= > </a><br>Hi there it all likeminded fellows!!!!!![/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top