Jump to content

Dependent From field


DataRater

Recommended Posts

If im not wrong, your requirement is...

Continents: [Asia V]

Countries:  [Abkhazia V]

 

So when user select Asia, it will display all the countries in Asia. If selected was Europe, the country list will change to French, Italy, England and so on...

 

You can do that with AJAX which loan the country list by passing the continent's name to a PHP script. The PHP script will grab the country list from any source like database or any webservice provider. Lastly, the PHP script will return the data in either XML or JSON (preferable) format to the JavaScript client and interpret it on the list.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.