JavaScript / XML based Country, State Selection Script

JavaScript Country Selection listUPDATE 26 January 2009: Fixed the XML file load Bug that was affecting Chrome and Safari

Making use of my XML based Country and State/Province file I have put together a small script to populate two drop down lists with the complete Country and the selected countries Province or State list.

The code is ALL client-side based, so it will suffer from browsers without JavaScript enabled, but it is a very fast and light weight script to use if you want to quickly add a Country and State selection box to your registration forms. This script does not require any database to function.

Demo page
[download#1]

Continue reading