Page 1 of 1

3 select boxes with eachother

Posted: Sat Aug 05, 2006 3:52 pm
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.