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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    May 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Question about drop down menu

    my written english is so poor !I don`t know if I can make myself understood

    the problem go with me is:

    e.g.

    when u select China in the 1rst menu of draw( drawing menu? list menu?) u will get all provinces of China in another menu of draw( drawing menu? list menu?)
    when u select U.S. in the 1rst menu of draw( drawing menu? list menu?) u will get all states of U.S. in another menu of draw( drawing menu? list menu?)

    may I can`t make myself understood but thanks also!

    thanks!

  • #2
    Regular Coder
    Join Date
    Apr 2004
    Location
    Canada
    Posts
    302
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I'm not skilled enough at javascripting to actually do the javascript, but let me guess at what dudo is trying to do:

    possible translation:
    There is a list of countries, followed by a list of the provinces inside a div that is to be shown only when the country is selected.

    Code:
    <script type="text/javascript">
    function show(menudiv){
    [coding for show/hide menudiv would follow]
    }
    </script>
    </head>
    <body>
    <ul>
    <li><a name="china" href="#china" onclick="show(0)">China</a>
       <div class="menu">list of provinces of China</div>
    </li>
    <li><a name="china" href="#china" onclick="show(1)">USA</a>
       <div class="menu">list of states in USA</div>
    </li>
    I haven't searched the forum to see if such a thing has already been answered but would be interested in knowing how to do this as well.

    edit: forgot that there couldn't be two show(0)s so changed the number on the second one

  • #3
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sounds like the Double Combo script over at Dynamic Drive.
    Search over there.

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,316
    Thanks
    203
    Thanked 2,566 Times in 2,544 Posts
    Have a look at

    http://javascriptkit.com/script/cutindex16.shtml

    if you want a script, or post in the Dynamic Drive forum if you are trying to adapt/repair a script you already have.
    Last edited by Philip M; 05-09-2004 at 07:50 PM.

  • #5
    New to the CF scene
    Join Date
    May 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks a lot!

    What I need is just like this

    http://javascriptkit.com/script/cut183.shtml

    Thanks! thanks a lot!


  •  

    Posting Permissions

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