I've been doing PHP for a while and am starting up on Javascript. Here is what I'd like to do:

I need to set up a series of dropdowns. I'd like the first one to be the only one in existence at first. Then, depending on what is selected, I'd like to create the second one and populate it based on what was selected in the first one etc. What is the best way to do this? I assume an OnChange event would be used to trigger a function that creates the new dropdown. How do you actually create a dropdown using JS?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.