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>
Multi-select enabled
<select class="selectpicker countrypicker" multiple></select>
Set default country
<select class="selectpicker countrypicker" data-default="United States"></select>
Searchable with bootstrap-select.js
<select class="selectpicker countrypicker" data-live-search="true" ></select>
Searchable, data default with flags
<select class="selectpicker countrypicker" data-flag="true" ></select>