Hello, I want to have two dropdown menus that are related to each other. So when an option is chosen from the first list, a group of choices will come up in the second list that are specific to that choice. Similar to what's used when booking a flight... you choose where you're departing from in the first list and the second list will include only destinations that are served from that airport. I'd also like it to work in reverse where the second list can be accesses first ie. choose your destination, and the first list will populate with airports that service this destiantion for example. Once the options are chosen and the user hits 'Submit' I'd like them to be taken to a new page. Can someone direct me to a site that might have tutorials for this sort of thing? I'm not even really sure what to search for in Google. Thanks! Kirsty
http://www.dynamicdrive.com/dynamicindex16/chainedselects/index.htm I am assuming that the lists are predetermined and not fetched from MYSQL .
Sorry for bringing this post back from teh dead but I've only just got to this. Thanks for that link. I've set the menu up how I want it here: http://www.workingholidayinfo.com/chainedmenu.html I don't really know much about this stuff and barely managed to get this far so any help would be appreciated. The main this is figuring out how to make the 'Go' button take me to an actual webpage rather than have that window pop up with the URL in there. The second thing isn't so important and I suspect is pretty complicated. Is it possible to un-grey the second dropdown menu and have it so it works backwards. So I can choose from a huge list of countries in the second menu first and then the first menu will populate with the matching countries. Does that make sense? Thanks!!
open config.js and change var onclickaction="alert" to var onclickaction="goto" as far as the 2nd point is concerned , it will need some extra bit of programming done . I'll look into it if i have time.
Thanks killerj and thanks for the offer as well. I've just had another problem pop up that hopefully someone can help me with. I have a feeling it's something small that I'm missing... I hope! I can get the list to work fine on this page: http://www.workingholidayinfo.com/index2.php But when I try to get it to work one directory up it doesn't work, as on this page: http://www.workingholidayinfo.com/canadians/test.php Can anyone help? Thanks again, Kirsty
I think you need to paste a copy of cinfig.js and the other javascript inside the Canadians folder ad it should work fine or otherwise <script language="javascript" src="chainedmenu.js"> /*********************************************** * Chained Select Menu- By Xin Yang (http://www.yxscripts.com/) & Dynamic Drive (http://dynamicdrive.com) * Script featured on/available at http://www.dynamicdrive.com/ * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code * This notice must stay intact for legal use! ***********************************************/ </script> <script language="javascript" src="config.js"></script> Code (markup): Find them in the affect page and replace these : <script language="javascript" src="../chainedmenu.js"> /*********************************************** * Chained Select Menu- By Xin Yang (http://www.yxscripts.com/) & Dynamic Drive (http://dynamicdrive.com) * Script featured on/available at http://www.dynamicdrive.com/ * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code * This notice must stay intact for legal use! ***********************************************/ </script> <script language="javascript" src="../config.js"></script> Code (markup): they both work the same way though