SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2010
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to populate a dropdownlist based on the selection made in another dropdownlist?

    How do I automatically populate the second dropdown based on the selection made in the first one. Say if I choose a contry in the first dropdown, then I want to display a list of cities from that country in the second dropdown. Is there a way to do this with jQuery?

    The code can be viewed at http://jsfiddle.net/prodac/stAAm/

  2. #2
    SitePoint Evangelist silversurfer5150's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Prodac,
    Is this what your looking for?

    http://www.codeassembly.com/examples...ombo/test.html

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2010
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Silversurfer5150,

    Yeah, thats exactly what I'm looking for

  4. #4
    SitePoint Enthusiast
    Join Date
    Jul 2010
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I need this to work without PHP though...

    Quote Originally Posted by silversurfer5150 View Post
    Hey Prodac,
    Is this what your looking for?

    http://www.codeassembly.com/examples...ombo/test.html


Tags for this Thread

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
  •