Total members 11894 |It is currently Thu Nov 21, 2024 7:17 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





<tr>
<td align="right" valign="center" width="100" height="50"><B> Name:</B></td>
<td valign="center"><input type="text" name="userName" size="30" maxlength="26"></td>
<td valign="center"><input type="text" name="userName"size="30" maxlength="26" disabled></td>

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




Author:
Newbie
User avatar Posts: 1
Have thanks: 0 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>


_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 2 posts ] 

  Related Posts  to : Java- Copy text area into disabled text area
 Two Listeners- Mutli- Action Listeners on Text Area     -  
 Able to Copy Text from Uneditable Text Boxes(JTextfields)     -  
 Area clipping     -  
 compute area of the circle.     -  
 Calculate the area of a circle of given radius     -  
 play a sound when the user enters the area- audio feedback     -  
 Text to speech in java     -  
 Text Texture in java     -  
 change Font of text in java     -  
 draw text effects in java     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com