SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Dec 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with swapping multiple drop downs

    Hello all,
    I need some help finding a script to use in a 2 lvl registration situation.
    The site in question is changing to a regional based model (will show the most local data first) for registered members. The site is owned by multiple partners so there are pre-defined regions users need to select from.

    On the registration page there would be 2 drop downs, 1 for region, and 1 for city. I would like to have the city box change depending on what the user selects for region. For example;
    If they select region 1, the city drop down would only show cities in region 1.
    If they select region 32, the city drop down show only region 32 cities.

    I've been searching for this for awhile, because I've seen it done but I'm not sure what its called.

    Any suggestions?

  2. #2
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's often called "dependent dropdowns".
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  3. #3
    SitePoint Member
    Join Date
    Dec 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Kravvitz View Post
    That's often called "dependent dropdowns".
    Thats exactly what I was after, thanks!


Bookmarks

Posting Permissions

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