| 776 |
lars |
1 |
bootstrap-select
|
|
|
2 |
================
|
|
|
3 |
|
|
|
4 |
[](https://github.com/silviomoreto/bootstrap-select/releases/latest)
|
|
|
5 |
[]()
|
|
|
6 |
[]()
|
|
|
7 |
[](LICENSE)
|
|
|
8 |
[](https://david-dm.org/silviomoreto/bootstrap-select)
|
|
|
9 |
[](https://david-dm.org/silviomoreto/bootstrap-select#info=devDependencies)
|
|
|
10 |
|
|
|
11 |
A custom select / multiselect for Bootstrap using button dropdown, designed to behave like regular Bootstrap selects.
|
|
|
12 |
|
|
|
13 |
## Demo and Documentation
|
|
|
14 |
|
|
|
15 |
See a Bootstrap 3 example [here](http://silviomoreto.github.io/bootstrap-select).
|
|
|
16 |
|
|
|
17 |
## Authors
|
|
|
18 |
|
|
|
19 |
[Silvio Moreto](https://github.com/silviomoreto),
|
|
|
20 |
[Ana Carolina](https://github.com/anacarolinats),
|
|
|
21 |
[caseyjhol](https://github.com/caseyjhol),
|
|
|
22 |
[Matt Bryson](https://github.com/mattbryson), and
|
|
|
23 |
[t0xicCode](https://github.com/t0xicCode).
|
|
|
24 |
|
|
|
25 |
## Usage
|
|
|
26 |
|
|
|
27 |
Create your `<select>` with the `.selectpicker` class.
|
|
|
28 |
```html
|
|
|
29 |
<select class="selectpicker">
|
|
|
30 |
<option>Mustard</option>
|
|
|
31 |
<option>Ketchup</option>
|
|
|
32 |
<option>Barbecue</option>
|
|
|
33 |
</select>
|
|
|
34 |
```
|
|
|
35 |
|
|
|
36 |
If you use a 1.6.3 or newer, you don't need to do anything else, as the data-api automatically picks up the `<select>`s with the `selectpicker` class.
|
|
|
37 |
|
|
|
38 |
If you use an older version, you need to add the following either at the bottom of the page (after the last selectpicker), or in a [`$(document).ready()`](http://api.jquery.com/ready/) block.
|
|
|
39 |
```js
|
|
|
40 |
// To style only <select>s with the selectpicker class
|
|
|
41 |
$('.selectpicker').selectpicker();
|
|
|
42 |
```
|
|
|
43 |
Or
|
|
|
44 |
```js
|
|
|
45 |
// To style all <select>s
|
|
|
46 |
$('select').selectpicker();
|
|
|
47 |
```
|
|
|
48 |
|
|
|
49 |
Checkout the [documentation](http://silviomoreto.github.io/bootstrap-select) for further information.
|
|
|
50 |
|
|
|
51 |
## CDN
|
|
|
52 |
|
|
|
53 |
**N.B.**: The CDN is updated after the release is made public, which means that there is a delay between the publishing of a release and its availability on the CDN. Check [the GitHub page](https://github.com/silviomoreto/bootstrap-select/releases) for the latest release.
|
|
|
54 |
|
|
|
55 |
* [//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.6.5/css/bootstrap-select.min.css](//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.6.5/css/bootstrap-select.min.css)
|
|
|
56 |
* [//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.6.5/js/bootstrap-select.min.js](//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.6.5/js/bootstrap-select.min.js)
|
|
|
57 |
* //cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.6.5/js/i18n/defaults-*.min.js (The translation files)
|
|
|
58 |
|
|
|
59 |
## Bugs and feature requests
|
|
|
60 |
|
|
|
61 |
Anyone and everyone is welcome to contribute. **Please take a moment to
|
|
|
62 |
review the [guidelines for contributing](CONTRIBUTING.md)**. Make sure you're using the latest version of bootstrap-select before submitting an issue.
|
|
|
63 |
|
|
|
64 |
* [Bug reports](CONTRIBUTING.md#bug-reports)
|
|
|
65 |
* [Feature requests](CONTRIBUTING.md#feature-requests)
|
|
|
66 |
|
|
|
67 |
## Copyright and license
|
|
|
68 |
|
|
|
69 |
Copyright (C) 2013-2015 bootstrap-select
|
|
|
70 |
|
|
|
71 |
Licensed under [the MIT license](LICENSE).
|