forked from Saganic/country-picker
-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The country flag image is not showing up #3
Labels
question
Further information is requested
Comments
You need to set |
Hi Alex,
I did that and set data-flag="true", but it's still not showing up.
I downloaded the css and js to my local, do I need to download any png or
jpg file? How should it work?
|
Here is a minimal example: <!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/bootstrap-select-country@4.0.0/dist/js/bootstrap-select-country.min.js"></script>
</body>
</html> |
Got it. Thanks!
|
mojoaxel
added a commit
that referenced
this issue
Aug 9, 2019
@david-young-fax 😉 I used the chance to update the README: baefa9c |
I still have one problem.
If I download your css to local, it doesn't work and won't show the flag.
So I have to use your css link in the example.
This is not a good solution, that means my website rely on your css link,
which we don't have control and feel unreliable to us.
…On Sat, Aug 10, 2019 at 3:09 AM Alexander Wunschik ***@***.***> wrote:
@david-young-fax <https://github.com/david-young-fax> 😉 I used the
chance to update the README: baefa9c
<baefa9c>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3?email_source=notifications&email_token=AM3MHZY4E4RTMSO6AXSKK5LQDW6FBA5CNFSM4IKPBY5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD37QZPY#issuecomment-520031423>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AM3MHZ5WHQ7W2LNNAJGN2B3QDW6FBANCNFSM4IKPBY5A>
.
--
Best,
David
|
You also need the |
Will this work with bootstrap 5? Thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cannot figure out how to make the country flag image to show
The text was updated successfully, but these errors were encountered: