Bootstrap Multiselect is a JQuery based plugin to provide an intuitive user interface for using select inputs with the multiple attribute present. Instead of a select a bootstrap button will be shown as dropdown menu containing the single options as checkboxes.
Bootstrap Multiselect is a JQuery based plugin to provide an intuitive user interface for using select inputs with the multiple attribute present. Instead of a select a bootstrap button will be shown as dropdown menu containing the single options as checkboxes.
Bootstrap 3 port by [Eduard Dudar](https://github.com/edudar).
## Documentation
## Documentation
Documentation, demonstrations and FAQ: [http://davidstutz.github.com/bootstrap-multiselect/](http://davidstutz.github.com/bootstrap-multiselect/).
Documentation, demonstrations and FAQ: [http://davidstutz.github.com/bootstrap-multiselect/](http://davidstutz.github.com/bootstrap-multiselect/).
...
@@ -16,10 +14,14 @@ Every pull request is appreciated. To make it easier for me to merge fixes and n
...
@@ -16,10 +14,14 @@ Every pull request is appreciated. To make it easier for me to merge fixes and n
* Include documentation for new options and features to avoid undocumented features.
* Include documentation for new options and features to avoid undocumented features.
* Add a thorough description to every pull request - so I am able to understand the purpose of the pull request.
* Add a thorough description to every pull request - so I am able to understand the purpose of the pull request.
* Have a look at the code as to keep the code as comprehensible and coherent as possible (concerning code style, indentation etc. ...).
* Have a look at the code as to keep the code as comprehensible and coherent as possible (concerning code style, indentation etc. ...) - **a tab should resemble four whitespaces**.
* Add comments to your code - to help me understand the committed code.
* Add comments to your code - to help me understand the committed code.
* Add a single pull request per fix or feature you add.
* Add a single pull request per fix or feature you add.
## Contributors
For a full list of contributors see [https://github.com/davidstutz/bootstrap-multiselect/graphs/contributors](https://github.com/davidstutz/bootstrap-multiselect/graphs/contributors).
## License
## License
This project is dual licensed under the Apache License, Version 2.0 and the BSD 3-Clause license.
This project is dual licensed under the Apache License, Version 2.0 and the BSD 3-Clause license.
The best way learning from the examples is using firebug, chrome developer tools or similar tools for your browser. Examine the generated markup and used javascript code.
The best way learning from the examples is using firebug, chrome developer tools or similar tools for your browser. Examine the generated markup and used javascript code.
</p>
</p>
...
@@ -600,7 +600,7 @@
...
@@ -600,7 +600,7 @@
<td>
<td>
<preclass="prettyprint linenums">
<preclass="prettyprint linenums">
<script type="text/javascript">
<script type="text/javascript">
$(document).ready(function() {
$(document).ready(function() {
$('.multiselect').multiselect({
$('.multiselect').multiselect({
buttonText: function(options, select) {
buttonText: function(options, select) {
if (options.length == 0) {
if (options.length == 0) {
...
@@ -622,7 +622,7 @@
...
@@ -622,7 +622,7 @@
}
}
}
}
});
});
});
});
</script>
</script>
</pre>
</pre>
</td>
</td>
...
@@ -633,11 +633,11 @@
...
@@ -633,11 +633,11 @@
<td>
<td>
<preclass="prettyprint linenums">
<preclass="prettyprint linenums">
<script type="text/javascript">
<script type="text/javascript">
$(document).ready(function() {
$(document).ready(function() {
$('.multiselect').multiselect({
$('.multiselect').multiselect({
numberDisplayed: 4
numberDisplayed: 4
});
});
});
});
</script>
</script>
</pre>
</pre>
</td>
</td>
...
@@ -647,13 +647,13 @@
...
@@ -647,13 +647,13 @@
<td>A string that is displayed when no options are selected.</td>
<td>A string that is displayed when no options are selected.</td>
<td>
<td>
<preclass="prettyprint linenums">
<preclass="prettyprint linenums">
<script type="text/javascript">
<script type="text/javascript">
$(document).ready(function() {
$(document).ready(function() {
$('.multiselect').multiselect({
$('.multiselect').multiselect({
nonSelectedText: 'You have not selected any options'
nonSelectedText: 'You have not selected any options'