Comments (8)
You need to set data-flag="true"
.
See examples
from bootstrap-select-country.
from bootstrap-select-country.
Here is a minimal example:
https://jsbin.com/xacuyin/3/edit?html,output
<!DOCTYPE html>
<html>
<head>
<title>JS Bin</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.4/css/bootstrap-select.min.css" type="text/css" />
<link rel="stylesheet" href="https://mojoaxel.github.io/bootstrap-select-country/dist/css/bootstrap-select-country.min.css" type="text/css" />
</head>
<body>
<select class="selectpicker countrypicker" data-flag="true" ></select>
<script src="https://code.jquery.com/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.4/js/bootstrap-select.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/js/bootstrap-select-country.min.js"></script>
</body>
</html>
from bootstrap-select-country.
from bootstrap-select-country.
@david-young-fax 😉 I used the chance to update the README: baefa9c
from bootstrap-select-country.
from bootstrap-select-country.
You also need the dist/css/images
folder. Just download the complete dist
folder.
from bootstrap-select-country.
Will this work with bootstrap 5? Thanks.
from bootstrap-select-country.
Related Issues (16)
- Bootstrap 4 Support HOT 4
- Add new locale ? HOT 1
- Using bootstrap-select-country on Bootstrap 4 HOT 1
- Data-countries option
- Return Country name instead of Country Code HOT 3
- mdbootstrap
- Support the "placeholder" attribute HOT 3
- Make values AND names searchable
- Dependencies
- how to configure to select some countries only? HOT 2
- Flags not being displayed if using latest version of each library. HOT 8
- change the code of the country selected
- demo page menu error
- Flags not showing in AdminLTE 2 theme?
- Option for data default with full country name? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap-select-country.