Populating drop-down based on 1st drop-down selection


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Populating drop-down based on 1st drop-down selection

  1. #1
    Theresa Guest

    Populating drop-down based on 1st drop-down selection


    I have two lists (drop-down boxes) where the second list depends on the value
    of the first list. Does anyone know an easy way to do this? For example,
    if the first drop-down contains a list of clients, when the user picks the
    client the second drop-down will be populated with the user id's for that
    client.

  2. #2
    Randy Harrison Guest

    Re: Populating drop-down based on 1st drop-down selection


    "Theresa" <theresa.delrosario@stuckynet.com> wrote:
    >
    >I have two lists (drop-down boxes) where the second list depends on the

    value
    >of the first list. Does anyone know an easy way to do this? For example,
    >if the first drop-down contains a list of clients, when the user picks the
    >client the second drop-down will be populated with the user id's for that
    >client.

    From what I have been seeing in ASP pages is to have one drop down on one
    page and when a selection is made a second asp with the results in another
    drop-down.

    Randy


  3. #3
    Avron Polakow Guest

    Re: Populating drop-down based on 1st drop-down selection

    Check the attachment to see how this can be done in javascript.

    If you need to go back to the server to populate the second dropdown set up
    a second frame which is hrefed to the asp with a parameter from the first
    dropdown.

    Theresa wrote:

    > I have two lists (drop-down boxes) where the second list depends on the value
    > of the first list. Does anyone know an easy way to do this? For example,
    > if the first drop-down contains a list of clients, when the user picks the
    > client the second drop-down will be populated with the user id's for that
    > client.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center