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!

name of the textbox

Status
Not open for further replies.

geethanandh

Programmer
Jun 5, 2002
21
0
0
US
hello
i have a form with one combo box and one text box,
options in combo box are
1) String
2) Number

If i select String then the name of the text box should be string and if i select number the name of the text box should be number.
Can we do that? .Pleas help me

Bye
geethanandh
 
<form>
<select name=&quot;SomeName&quot; onchange=&quot;this.form.elements[1].name=this.value;&quot;>
<option value=&quot;String&quot;>String
<option value=&quot;Number&quot;>Number
</select>
<input type=Text name=SomeName>
</form>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top