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

Multiple Input Boxes

Status
Not open for further replies.

zcole

Technical User
Feb 17, 2004
28
US
I saw an example on a website one time (which I didn't bookmark) that had a drop down menu. This menu listed 1, 2, 3, 4, 5, etc. When you selected 1, one input box would appear underneath it. When you selected 2, two input boxes appeared beneath. And 3, you guessed it, three input boxes appeared beneath the drop down menu. I remember looking at the code, and I believe javascript was used to create this type of application. Unfortunately, I have no idea how to do it, and it would be extremely useful in a project I am working on right now. If anyone knows of an example of this, or how to do it, I could really use some help. Thanks!
 
You can do this with JavaScript, put div or span tags around each input box with an id. Then in JavaScript adjust the css "display" property between "none" and "block" for the input boxes when a new option is selected.
 
Chris, I posted the question in that forum...hopefully I'll get some help there too. Thanks.

Dakota - I am not familiar with the css display property. Do you have somewhere I can read about that?

Thanks guys I appreciate it.
Zac
 
The top entry in a Google Search links to the World Wide Web Consortium's "schools" site, which provides useful - and definitive - information.

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top