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

    To populate a dropdown list???

    I have 2 dropdown list in my html. Is possible for me to populate the option values in the second dropdown list depend on what I select in the first one.
    Thank you.

    Zorro

    <table>
    <tr>
    <td>
    <form name="frmSelect" method="POST">
    <select name="firstSelect" onChange="populateSecondSelect()">
    <option selected>Select One</option>
    <option>a</option>
    <option>b</option>
    </select>
    </td>
    <td>
    <select name="secondSelect">
    <option selected>Select One</option>
    <option></option>
    <option></option>
    </select>
    </form>
    </td>
    </tr>
    </table>

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sure just search the forum (or the web) for "javascript combobox". Here's one good link Basic Editable Combo Box

    but there's literally thousands more.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #3
    New to the CF scene
    Join Date
    Sep 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks Roy.

    Thanks Roy. This does helps 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
    •