Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to create drop down menu and submenu

    i need to create submenus for drop down menu in a form .
    For example
    there are 2 drop down menus horizontally
    Code:
    MAIN MENU
    <select name="applyfor" id="applyfor" style="width:100px">
                <option value="A">A</option>
                <option value="B">B</option>
                <option value="C">C</option>
                </select>
    
    
                <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.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,854
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •