I'm using country picker from Bootstrap form helper: Country Picker
Problem is that i need to initialize it dynamically with a country. I'm using data-country="US" as default, anyways i need to change it on document ready function.
<div id="country-select" class="bfh-selectbox bfh-countries" data-flags="true" data-value="US">
<input type="hidden" value="">
<a class="bfh-selectbox-toggle" role="button" data-toggle="bfh-selectbox" href="#">
<span class="bfh-selectbox-option input-medium" data-option=""></span>
<b class="caret"></b>
</a>
<div class="bfh-selectbox-options">
<input type="text" class="bfh-selectbox-filter">
<div role="listbox">
<ul role="option">
</ul>
</div>
</div>
</div>
use the html below to select a default country on initialize. Also add
bootstrap-formhelpers.jsandbootstrap-formhelpers.cssto your html or your select will not be populated with data.and to select a country after initialization,
see the document for more options on initilization. Here's a working fiddle.
Per OP's comment The OP is using a theme using select2, quoting from there
and therefore to reflect changes;