SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2010
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    DropDown Menu Affecting other DropDown Menu

    How can I make something like that:
    I will have 3 dropdown menus
    First Dropdown menu will be: Class
    Second Dropdown menu will be: Area

    Third Dropdown menu will be: options that will change

    3 Examples:

    1. if I choose on "Class" Dropdown menu the option "A"
    It will show on the the Third Drop down
    "A1","A2","A3"
    2. if I choose on "Class" Dropdown menu the option "B"
    It will show on the the Third Dropdown
    "Y1","Y2","Y3"
    3. if I choose on "Class" Dropdown menu the option "A" and on "Area" dropdown menu the option "Center"
    It will show on the the Third Dropdown
    "X1","X2","X3"

    And I need to get the categories from Database..

    How can it be done?

  2. #2
    SitePoint Wizard rguy84's Avatar
    Join Date
    Sep 2005
    Location
    Durham, NC
    Posts
    1,659
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Ryan B | My Blog | Twitter

  3. #3
    SitePoint Zealot
    Join Date
    Dec 2010
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks!
    Its working.. althought I took me like a hour to make it work
    and it looks really messy...

    Is there a better way than that?
    since im printing all the possible if/else if statements.. and it looks kinda messy..


Bookmarks

Posting Permissions

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