Questions tagged [bootstrap-multiselect]

Bootstrap-Multiselect refers to David Stutz's jQuery-based plugin that provides an intuitive user interface for using select inputs with the multiple attribute present.

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.

This tag is for questions based off the library bootstrap-multiselect (GitHub).

There is a demo page: Bootstrap Multiselect

There is a sample skeleton in jsFiddle.

CDN location

Stack Snippet Starter Pack

$(function() {
    $('.multiselect').multiselect();
});
<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.2/css/bootstrap.css" rel="stylesheet"/>
<link href="http://davidstutz.github.io/bootstrap-multiselect/dist/css/bootstrap-multiselect.css"/>

<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.2/js/bootstrap.js"></script>
<script src="http://davidstutz.github.io/bootstrap-multiselect/dist/js/bootstrap-multiselect.js"></script>

<select class="multiselect" multiple="multiple">
    <option value="cheese">    Cheese     </option>
    <option value="tomatoes">  Tomatoes   </option>
    <option value="mozarella"> Mozzarella </option>
    <option value="mushrooms"> Mushrooms  </option>
    <option value="pepperoni"> Pepperoni  </option>
    <option value="onions">    Onions     </option>
</select>
395 questions
0
votes
1 answer

Bootstrap Multiselect filtering values based on another dropdown

I'm working on cascading the multi-select based on the values of the data-attributes on another. I have this method which is called inside the onChanged event of the parent. By parent I mean what to filter the child by i.e Parent = Department…
ZeroBased_IX
  • 2,667
  • 2
  • 25
  • 46
0
votes
2 answers

Dynamically add attributes as object properties

I'm working on bootstrap-multiselect, I'm trying to add data attributes in the dataprovider method. Current var options = [ {label: 'Option 1', title: 'Option 1', value: '1', selected: true}, {label: 'Option 2', title: 'Option 2',…
ZeroBased_IX
  • 2,667
  • 2
  • 25
  • 46
0
votes
1 answer

Correct syntax for multiselect option referencing

I'm finding it impossible to find the correct syntax to programmatically check a radio button in a Bootstrap Multiselect. Examples I've seen use this syntax: $('#taskpriority').filter("option[value='3']").prop('checked', true); I'm not seeing any…
Flim Flam
  • 197
  • 4
  • 15
0
votes
3 answers

Can't get bootstrap multiselect to work with angular

I'm trying to get the bootstrap multiselect widget to work. It works when I hardcode all the options, like this:
KAR
  • 1
  • 1
  • 3
0
votes
0 answers

multiselect dropdown list with country flag

I want multiselect dropdown list, country name followed by country flag. and for now, I implemented multiselect dropdown using: http://davidstutz.github.io/bootstrap-multiselect/

Employee should be from Country

0
votes
2 answers

Bootstrap Multi-Select Form submit twice

I'm having an issue using bootstrap-multiselect and ajax. My Form :