View Full Version : How to create drop down menu and submenu

08-01-2011, 01:18 PM
i need to create submenus for drop down menu in a form .
For example
there are 2 drop down menus horizontally

<select name="applyfor" id="applyfor" style="width:100px">
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>

<select name="submenu" id="submenu" style="width:100px">
<option value="A1">A1</option>
<option value="A2">A2</option>

<option value="B1">B1</option>
<option value="C1">C1</option>
in the above menus when i select A in the main menu , A1 and A2 should appear in the submenu
when i select B in the main menu, B1 should appear
like wise
Hope u understood the problem
Anyhelp will be appreciated , pls help urgent.

08-01-2011, 01:44 PM
Have a look into http://www.google.com/search?q=javascript+chained+select