bootstrapping - how to select desired country in bootsratp country picker? -


the below code shows flag , selected when drop down loaded.

<div class="bfh-selectbox bfh-countries" data-country="us" data-flags="true"></div> 

enter image description here

i want selecte uk in form , iraq in form when tried below not show flags of country , country name.

<div class="bfh-selectbox bfh-countries" data-country="uk" data-flags="true"></div> <div class="bfh-selectbox bfh-countries" data-country="irq" data-flags="true"></div> 

the above code selected blank default.

enter image description here how can show uk , iraq flag how name , flag selected on <div class="bfh-selectbox bfh-countries" data-country="us" data-flags="true"></div>

to make work should add links css , js files of bootstrap form helpers library should downloaded on server

 <link href="css/bootstrap-form-helpers.min.css" rel="stylesheet">     <script src="js/bootstrap-formhelpers.min.js"></script> 

<div class="bfh-selectbox bfh-countries" data-country="us" data-flags="true"> </div> 

example displaying country name , flag country code

<span class="bfh-countries" data-country="us" data-flags="true"></span> 

read more http://www.freenetmall.com/common/jquery/formhelpers/docs/country.html


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -