3 select boxes with eachother

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

3 select boxes with eachother

Post by shiznatix »

Ok I followed the tutorial found there: viewtopic.php?t=29084 and everything works well.

The problem is I want to make this a sort of 'extension' to my framework and be able to link as many select boxes together as possible. take for example this:

select state (counties updated to that state) -> select county (cities updated to that county) -> select citys (city areas updated to that city)

thats 4 select boxes joined together (state, county, city, city areas) but the tutorial only shows how to link 2 together.

I seriously don't know javascript. I usually hate javascript and I need to make sure that if someone has it turned off then they can still use it (the code right now does this well by just default giving the select boxes every option available, i like that). How can I make this be able to accept as many options as possible? I will probably top out at 5 boxes being linked (add country at the top) and then it will be good.

So, how do I do this? I have no idea right now.
Post Reply