Click to See Complete Forum and Search --> : Dynamic drop down / text fields


Radon3k
12-06-2006, 11:27 PM
What I'm looking to do is create a drop down menu that allows you to select the number of text boxes you want to appear. So if you have a drop down menu to select the number of names you want into the database, you can select, say, 5. When you select 5, 5 text fields appear and you can type in their names. How is this done? I've searched Google and what not but I'm not sure what to search for and as a result, I'm not having much luck. Thanks. :)

Weedpacket
12-06-2006, 11:59 PM
That's Document Object Model (DOM) manipulation, using Javascript methods such as document.createElement() to create a new element and appendChild() to attach it to an existing one.

Radon3k
12-07-2006, 12:21 AM
Any tips on how I would go about creating something like this? I'm still searching Google for any tutorials or tips or something that would help with this.