Populating select Boxes

Results 1 to 2 of 2

Thread: Populating select Boxes

  1. #1
    Join Date
    Dec 1969

    Default Populating select Boxes

    Hi all<BR><BR>I have to select boxes and many text boxes..One for selecting Country and the other one for City. I have both details stored in the database. Each city is linked to a country. When a user selects a country say India all the cities in india should be displayed in the cities select box without refreshing the page.<BR>If it refreshes the page all the other values filled will go for a toss..<BR><BR><BR>How can this be done<BR><BR>Cheers<BR>vals

  2. #2
    Join Date
    Dec 1969

    Default RE: Populating select Boxes

    I believe that www.irt.org have an example of how to do this.<BR><BR>You have two options:<BR>1) When the first box (country) changes, submit the form and populate your cities box on the server, or<BR>2) Put all of the cities into a client-side array. When the first box changes, re-populate the cities box using client-side scripting.<BR><BR>Craig.

Posting Permissions

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