Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. how to get the values into the dropdown list

how to get the values into the dropdown list

Scheduled Pinned Locked Moved Web Development
databasehelptutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anjani Poornima
    wrote on last edited by
    #1

    hi, I am having three drop down lists 1.countires 2.states 3.cities I filled my country dorpdownlist from the database. And now i like to fill the states dropdown list when the country is selected all the states of the corresponding countries must be filled. Any one plz help me how i can do this.... Thanx in advance

    C M J 3 Replies Last reply
    0
    • A Anjani Poornima

      hi, I am having three drop down lists 1.countires 2.states 3.cities I filled my country dorpdownlist from the database. And now i like to fill the states dropdown list when the country is selected all the states of the corresponding countries must be filled. Any one plz help me how i can do this.... Thanx in advance

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      There are a ton of examples on the web of how to do this. Given that all we can assume that you're not using ASP.NET ( that is, we have no idea what you're using ), it's hard to say much more.

      Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

      1 Reply Last reply
      0
      • A Anjani Poornima

        hi, I am having three drop down lists 1.countires 2.states 3.cities I filled my country dorpdownlist from the database. And now i like to fill the states dropdown list when the country is selected all the states of the corresponding countries must be filled. Any one plz help me how i can do this.... Thanx in advance

        M Offline
        M Offline
        Marc Firth
        wrote on last edited by
        #3

        javascript might be the way forward: Something along the lines of: <script type="text/javascript"> function updateState(){ var country = document.getElementById('country').value; if (country == "England"){ //add children here } } </script> <select id="country" onchange="updateState()"> <option value="England"> England<option> ... </select> <select id="state" onchange="updateState()"> </select>

        Neonlight

        1 Reply Last reply
        0
        • A Anjani Poornima

          hi, I am having three drop down lists 1.countires 2.states 3.cities I filled my country dorpdownlist from the database. And now i like to fill the states dropdown list when the country is selected all the states of the corresponding countries must be filled. Any one plz help me how i can do this.... Thanx in advance

          J Offline
          J Offline
          JyotiRawat
          wrote on last edited by
          #4

          You can use Ajax call to get values for state based on selected country

          Jyoti

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups