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

onchange events

Status
Not open for further replies.

discusmania

IS-IT--Management
Oct 24, 2000
158
AP
hi guys...

i have a select control , the value is manufacturing and customer.

If the user select manufacturing
input boxes textmfg1, textmfg2, textmfg3 will be shown
else
input boxes textcust1, textcust2, textmfg3 will be shown

end if

iwant this task to be generated in onchange event of the select control.


thanks so much
new in web programming








 
This is not an ASP question. This should really be posted to the JavaScript/DHTML/CSSP board. You need to change the visiblity properity fo the text boxes using JavaScript. You can do this for IE:

document.all.elementName.style.visibility = "hidden";
(or "visible");

or for NS

document.elementName.visibility = &quot;hidden&quot;; (or &quot;visible&quot;). You do this in a JavaScript block. You can call a function by placing an onChange event in your <SELECT> tag which checks the index of the select box, and shows or hides text boxes accordingly.

Note, again, this is not an ASP question, but a JavaScript question dealing with DHTML and CSS-P.

Harold Blackorby
hblackorby@scoreinteractive.com
St. Louis, MO
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top