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.
## Usage
## Examples
These examples can also be seen in action in index.html:
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>
<script type="text/javascript">
$(document).ready(function(){
$('#example1').multiselect();
...
...
@@ -38,7 +41,9 @@
button:'btn btn-primary disabled'
});
$('#example6').multiselect();
$('.example7').multiselect();
$('.example7').multiselect({
container:'<span class="dropdown" />',
});
});
</script>
<tableclass="table table-striped">
...
...
@@ -69,8 +74,7 @@
</select>
</td>
<td>
As link using <code>btn btn-link</code>.
</ul>
As link using <code>button: 'btn btn-link'</code>.
</td>
</tr>
<tr>
...
...
@@ -85,7 +89,7 @@
</select>
</td>
<td>
Small button using <code>btn btn-small</code>.
Small button using <code>button: 'btn btn-small'</code>.
</td>
</tr>
<tr>
...
...
@@ -100,12 +104,12 @@
</select>
</td>
<td>
Disabled using <code>btn btn-primary disabled</code>.
Disabled using <code>button: 'btn btn-primary disabled'</code>.