Four level connected dropdown boxes

Discussion in 'JavaScript' started by levani, May 31, 2010.

  1. #1
    I'm looking for four level connected drop down boxes. Unlike all the scripts I have seen on the internet I need all the options to be available if nothing is selected in the previous drop down. So I want something like combination of connected drop downs and ordinary drop down. If the selection is made, display appropriate options in other drop downs... Hope I'm clear...

    Ex: If I had three properties in Spain,

    -----------------------------------------------------------------------------------------------------------
    | -------- Country: Spain --------- | -------- Country: Spain --------- | -------- Country: Spain ---------- |
    | -------- State: Andalusia ------- | -------- State: Andalusia -------- | -------- State: Catalonia --------- |
    | -------- District: Malaga -------- | -------- District: Granada ------- | -------- District: Barcelona ------- |
    | -------- Town: Marbella --------- | -------- Town: Motril ----------- | --------- Town: Badalona -------- |
    -----------------------------------------------------------------------------------------------------------

    it should show me all the list of available locations, but when I choose Andalusia, it would only show two rest locations – Malaga and Granada, and the same rule when choosing district – Malaga->Marbella

    Can anyone please help? I need it very much...

    Thanks in advance!
     
    levani, May 31, 2010 IP
  2. d_s

    d_s Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    do you need to use the client side script alone for this functionality or to use PHP and AJAX for this . If you have not yet worked out a solution, I can help you out.

    regards

    d_s
    http://www.dsaravanan.wordpress.com/javascript

     
    d_s, Jun 3, 2010 IP