## Country-Region-Selector (CRS) A common thing you often see in forms is a country dropdown which changes the contents of a second region field when a country is selected. It's super easy to do this, but requires a lot of leg work tracking down the data and rigging it all up in your form. This script let's you set that all up automatically without having to run any custom javascript. The script comes in two flavours: - standalone script (no dependencies, just plain JS) - **54KB** (minified version) - a jQuery-dependent version (ever-so slightly smaller) - **53KB** (minified version) The reason the files are so large is that they contain all the country and region strings. ### Features - Lets you customize the default "Please select" field for each country/region with whatever language you want. - Lets you specify a default value for each field. - Lets you customize the appearance and value of the country field ("Canada" or "CA") - they can be different, if desired (e.g. 2 char code for saving to database; full name for displaying purposes). - Lets you have as many country-region-mapped fields as you need in your page. - The standalone version has no dependencies on other any libs (jQuery etc) and you can include the JS file anywhere you want (head/foot). ### Example Check out the following page for an example of the various ways it can be configured and used. [http://benkeen.github.io/country-region-selector/](http://benkeen.github.io/country-region-selector/) ### How to Use It's very easy. 1. Include the `crs.min.js` file in your webpage. 2. Add two `