mojoaxel / bootstrap-select-country

countrypicker is a jQuery plugin that utilizes Bootstrap's dropdown.js and bootstrap-select to provide country data and styling to standard select elements.
https://mojoaxel.github.io/bootstrap-select-country/index.html
MIT License
64 stars 36 forks source link

Option for data default with full country name? #9

Closed JonathanNet closed 4 years ago

JonathanNet commented 4 years ago

Hi I also noticed that I cannot use full country name in data default, can it be added in this script like data-default="Denmark" ? :)

mojoaxel commented 4 years ago

No, you'll need to "translate" your name into a ISO_3166-2 country code like e.g. "DK".

Yu could use some existing library like e.g. country-code-lookup for this.