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

textbox name

Status
Not open for further replies.

geethanandh

Programmer
Jun 5, 2002
21
0
0
US
hello
  Is it possible to assign the value of one textbox as a name to another text box in the same form.I know the name of the textbox which contains the value.
I have tried this
 <input type=&quot;text&quot; name='&quot;hello&quot; value=&quot;&quot; size=&quot;14&quot;>
<input type=&quot;text&quot; name=&quot;hello.value&quot; value=&quot;&quot; size=&quot;14&quot;>
but when i submit the form the name of the textbox is not substituted with the value.

bye
geethanandh

 
why? if you want text box B to contain the contents of text box A, use the following:

<input type=&quot;text&quot; name=&quot;textA&quot; onchange=&quot;document.forms[0].textB.value = this.value;&quot; />
<input type=&quot;text&quot; name=&quot;textB&quot; />

==============================================================
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top