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>
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.
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
Post a Comment