country-region-dropdowns example

Example 1

This is a simple no-frills example.


Example 2

Custom default option texts for both the country and region dropdowns.


Example 3

The country dropdown values are by default the same as the display values: the full country names. By adding the data-value="2-char" attribute to the country field, the values will be a 2-char character code.


Example 4

Pre-filling the fields on page load.