bootstrap-select-country is a jQuery plugin that utilizes Bootstrap's dropdown.js and bootstrap-select to provide country data and styling to standard select elements.
Download latest releaseCreate your <select>
with the .selectpicker
and .countrypicker
class.
The data-api from bootstrap-select will automatically apply a basic theme to these elements.
Then the data-api from bootstrap-select-country will populate the select with countries.
<select class="selectpicker countrypicker"></select>
Simple Country-Picker
<select class="selectpicker countrypicker"></select>
Set default country "DE"
<select class="selectpicker countrypicker" data-default="DE"></select>
Searchable with bootstrap-select.js
<select class="selectpicker countrypicker" data-live-search="true" ></select>
Show flags
<select class="selectpicker countrypicker" data-flag="true" ></select>
Multi-select enabled
<select class="selectpicker countrypicker" multiple></select>
Set multiple defaults
<select class="selectpicker countrypicker" data-default="DE,JP" multiple></select>
Multi-select with flags
<select class="selectpicker countrypicker" data-flag="true" multiple></select>
Show only a selection of countries
<select class="selectpicker countrypicker" data-countries="AT,BE,BG,HR,CY,CZ,DK,EE,FI,FR,DE,GR,HU,IE,IT,LV,LT,LU,MT,NL,PL,PT,RO,SK,SI,ES,SE" ></select>