Javascript Help Needed for a Beginner

Discussion in 'JavaScript' started by daniah, Apr 18, 2007.

  1. #1
    Hi,
    I need two drop down menus
    1: Country
    2: City

    If i choose the country as USA using the "country" drop down menu then for the 2nd "CITY" drop down menu i need only USA cities to be displayed.

    How can i do it via Javascript? Pls help!

    Thanks In advance
    Daniah
     
    daniah, Apr 18, 2007 IP
  2. phper

    phper Active Member

    Messages:
    247
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    phper, Apr 18, 2007 IP
  3. senloong

    senloong Peon

    Messages:
    102
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Cool Ajax tutorial!
     
    senloong, Apr 18, 2007 IP
  4. daniah

    daniah Well-Known Member

    Messages:
    1,092
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    138
    #4
    daniah, Apr 18, 2007 IP
  5. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #5
    Here you'll find different multi-levels Menus
    Maybe the "Chained Select menu" from that page is what you're looking for.
     
    ajsa52, Apr 18, 2007 IP
  6. phper

    phper Active Member

    Messages:
    247
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Hi daniah,
    The javascript source code for the demo is in this file: /script/tutorials/ajax_demo.js
     
    phper, Apr 19, 2007 IP