onchange event multiple selection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Deepak D
    New Member
    • Jan 2011
    • 4

    #1

    onchange event multiple selection

    i have three dropdown populating using ajax just like countery state city.everything is working fine on basis of country state populate and on basis of state and country city populate .now i want when country is selected the city dropdown should be populated automaticaly .
    i am using ajax.
    pls suggest
  • stepterr
    New Member
    • Nov 2007
    • 157

    #2
    Have a look at this site for a reference on what you'll need to do.

    Comment

    • Deepak D
      New Member
      • Jan 2011
      • 4

      #3
      dear stepterr
      As i have already written all dropdowns are working properly
      but now i want to fill the third dropdown onchange of first dropdown .it means when user will select first dropdown the third's dropdown values will fill automatically and also now if check the second here should be also values

      Thanks....

      Comment

      • mfaisalwarraich
        New Member
        • Oct 2007
        • 194

        #4
        each country have different states and then different cities. how u can populate cities without knowing state?

        Comment

        • HaLo2FrEeEk
          Contributor
          • Feb 2007
          • 404

          #5
          By "populated" , do you mean you want it to actually select a specific city, or you want it to fill with cities that are contained within that country? That doesn't sound very smart to me, and doesn't make any sense at all. Most countries have hundreds of major cities, you don't want your use to have to scroll through hundreds of items to find the one they're after.

          Select country, populate the state dropdown with states for the selected country, select state, THEN populate the city dropdown with possible cities for the selected state.

          Comment

          • Deepak D
            New Member
            • Jan 2011
            • 4

            #6
            see what i want was that onselection of country state and city should be filled out automatically .
            now i have fix the problem.
            thanku vary much for u'r replies..


            deepak

            Comment

            • HaLo2FrEeEk
              Contributor
              • Feb 2007
              • 404

              #7
              I'm still confused, do you mean county or country? America would be a country. In America there are 50 states, each state has many cities. You can't autopopulate the state and city by setting a country, that doesn't make sense. If you mean county, then I can understand.

              Comment

              • Deepak D
                New Member
                • Jan 2011
                • 4

                #8
                yes it is country.
                actually i am creating a website for online restaurant booking.so here i have city ,locality and cuisine in a dropdown just like as country state and city.

                Comment

                Working...