Giter Club home page Giter Club logo

Comments (8)

mojoaxel avatar mojoaxel commented on July 27, 2024

You need to set data-flag="true".
See examples

from bootstrap-select-country.

david-young-fax avatar david-young-fax commented on July 27, 2024

from bootstrap-select-country.

mojoaxel avatar mojoaxel commented on July 27, 2024

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.

david-young-fax avatar david-young-fax commented on July 27, 2024

from bootstrap-select-country.

mojoaxel avatar mojoaxel commented on July 27, 2024

@david-young-fax 😉 I used the chance to update the README: baefa9c

from bootstrap-select-country.

david-young-fax avatar david-young-fax commented on July 27, 2024

from bootstrap-select-country.

mojoaxel avatar mojoaxel commented on July 27, 2024

You also need the dist/css/images folder. Just download the complete dist folder.

from bootstrap-select-country.

XhrisManuel avatar XhrisManuel commented on July 27, 2024

Will this work with bootstrap 5? Thanks.

from bootstrap-select-country.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.