Results 1 to 4 of 4

Thread: How do you populate a combo box when another combo box is choosen?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Posts
    101

    How do you populate a combo box when another combo box is choosen?

    For example, there is two combo box: Parish and Region. When I chose one of the Parish, it would populate the Region combo box. How would I do this?

    Thanks,

    Don

  2. #2
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    Re: How do you populate a combo box when another combo box is choosen?

    use javascript to control this client side, or if you dont know javascript you could do it with asp but this would mean posting back every time the first combo box changes.

    .Net would be a good bet as it does this easily.

  3. #3
    Fanatic Member aconybeare's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    772

    Re: How do you populate a combo box when another combo box is choosen?

    Here is a link to a script that I've used in the past, which can be used in conjunction with asp to load the option lists from a db.
    http://www.javascripttoolbox.com/lib/dynamicoptionlist/
    Last edited by aconybeare; Jun 30th, 2006 at 10:54 AM.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Posts
    101

    Re: How do you populate a combo box when another combo box is choosen?

    Quote Originally Posted by aconybeare
    Here is a link to a script that I've used in the past, which can be used in conjunction with asp to load the option lists from a db.
    http://www.javascripttoolbox.com/lib/dynamicoptionlist/
    Cool, I'll use this in future projects. Thanks!

Posting Permissions

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



Click Here to Expand Forum to Full Width