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!

select onchange events

Status
Not open for further replies.

discusmania

IS-IT--Management
Oct 24, 2000
158
AP
hello.

for example i have 2 text input type
1. text1
2. text2

and a select input type--> select1 which the value is
a, b and c

what i want to do is when the user choose a only the text1 input will be shown, and when the user choose b only text2 will be shown whereas when the user choose c both the textbox will be shown.


is it possible to do that?

new in ASP
NOR

 
You can either have two pages, one with the select box, and a second that displays different text boxes depending on what you chose on the first page, or you can have the page submit automatically to itself and then change itself using based on what you selected with the select box.

ASP is server-side code processing. What you are doing sounds more like client-side code. I'd recommend using JavaScript and DHTML (CSS-P) to make different text boxes visible and hidden based on your select box choice.

Harold Blackorby
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top