populating second drop down list box based on the selection of the first

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nlal
    New Member
    • Jan 2010
    • 19

    populating second drop down list box based on the selection of the first

    Hi i m trying to create two drop down list boxes where the second drop downl list box is populated based on the selection of the first one.I have searching the net for days and even the scripts i downloaded don't seem to be working..Can anyone help me plz.....Its urgent...I have deadline approaching....
  • kovik
    Recognized Expert Top Contributor
    • Jun 2007
    • 1044

    #2
    I believe this is referred to in the programming world as "chained dropdowns" or "chained select boxes." It can be done on the server-side (i.e. PHP), or the client-side (JavaScript).

    Comment

    • nlal
      New Member
      • Jan 2010
      • 19

      #3
      any suggestions for javascript?

      Comment

      • kovik
        Recognized Expert Top Contributor
        • Jun 2007
        • 1044

        #4
        Have you tried Googling the terms that I've given you? There are a lot of resources on this.

        Comment

        • nlal
          New Member
          • Jan 2010
          • 19

          #5
          Thanks...I managed to get it....

          Comment

          • am5786
            New Member
            • Sep 2008
            • 1

            #6
            I've a request to kovik, if you don't know the solution please stop asking others to google the query, people come to the forum after they've searched all over. Simple if you don't have any solution please stay away. Thanks

            PS: If someone has asp codes for the query. Thanks

            Comment

            • kovik
              Recognized Expert Top Contributor
              • Jun 2007
              • 1044

              #7
              Yes, I'm sure that the OP Googled it, especially since after I gave him a query to search for and he found what he needed.

              And I do know the solution... I built a JavaScript solution to this a while ago, but I still haven't tested it much, so I haven't published it yet. It builds a chained selection based on a single selection drop down, so that it works with or without JavaScript, and doesn't rely on server-side requests to do so.

              I may even publish it in this thread when I feel it's polished enough. I was planning on publishing it in the next few days, anyway.


              I have a request for you: Don't hijack other posters' threads, and don't necro old threads.

              Comment

              • kovik
                Recognized Expert Top Contributor
                • Jun 2007
                • 1044

                #8
                Here it is:
                Chained selection drop down plugin for jQuery

                Comment

                Working...