using javascript to populate one menu based on the choice in another menu
I have several menus which are dynamically populated (with PHP and MYSQL). The information is category based. How do I dynamically populate the second menu based on the choice the user makes in the first menu (without having to submit and refresh the page-- i.e. I need to use javascript instead of the server-side PHP).
Example:
Main Categories: 1) Numbers 2) Letters
Sub Categories: 1 a
2 b
3 c
etc. etc.
the first menu contains the two main categories. I want the second list to be populated with only the sub categories of the main category the user chooses in the first menu (i.e. 1,2,3 etc. if he chose the main category 'Numbers' and a,b,c, etc. if he chose the main category 'Letters')
Is there an easy way to do this in Dreamweaver?
Thanks,
YWSW
