Skip to main content

Bootstrap Multiselect

Bootstrap Multiselect is a jQuery based plugin that allows users to select multilple options from a standard select UI element.
Its implementation is quite simple, and in exchange brings a lot of UX value.
Examples of Bootstrap Multiselect use:
  • Ingredience choice within pizza delivery system
  • Laptop hardware configuration in online shop
  • Flight booking customization
See the following mutliselect dropdown example:
                
<select class="mdb-select colorful-select dropdown-primary" multiple searchable="Search here..">
    <option value="" disabled selected>Choose your country</option>
    <option value="1">USA</option>
    <option value="2">Germany</option>
    <option value="3">France</option>
    <option value="4">Poland</option>
    <option value="5">Japan</option>
</select>
<label>Label example</label>
                
            
Overwriting a standard select
MDB overwrites a standard select to replace it with our Material Select. That's why before you can use it, you have to initialize Material Select by placing following code in your project.
In addition, you will need a separate call for any dynamically generated select elements your page generates.

Initialization:


// Material Select Initialization
$(document).ready(function() {
    $('.mdb-select').material_select();
});
            

Standard multiselect 


<select class="mdb-select" multiple>
    <option value="" disabled selected>Choose your country</option>
    <option value="1">USA</option>
    <option value="2">Germany</option>
    <option value="3">France</option>
    <option value="4">Poland</option>
    <option value="5">Japan</option>
</select>
            

Multiselect with label 


<select class="mdb-select" multiple>
    <option value="" disabled selected>Choose your country</option>
    <option value="1">USA</option>
    <option value="2">Germany</option>
    <option value="3">France</option>
    <option value="3">Poland</option>
    <option value="3">Japan</option>
</select>
<label>Label example</label>
            

Colorful Multiselect with label 


<select class="mdb-select colorful-select dropdown-primary" multiple>
    <option value="" disabled selected>Choose your country</option>
    <option value="1">USA</option>
    <option value="2">Germany</option>
    <option value="3">France</option>
    <option value="3">Poland</option>
    <option value="3">Japan</option>
</select>
<label>Label example</label>
            

Multiselect with options groups 


<select class="mdb-select" multiple>
    <optgroup label="team 1" >
        <option value="1">Option 1</option>
        <option value="2">Option 2</option>
    </optgroup>
    <optgroup label="team 2">
        <option value="3">Option 3</option>
        <option value="4">Option 4</option>
    </optgroup>
</select>
            

Multiselect with icons 


<select class="mdb-select" multiple>
    <option value="" data-icon="https://mdbootstrap.com/img/Photos/Avatars/avatar-1.jpg" class="rounded-circle">example 1</option>
    <option value="" data-icon="https://mdbootstrap.com/img/Photos/Avatars/avatar-2.jpg" class="rounded-circle">example 2</option>
    <option value="" data-icon="https://mdbootstrap.com/img/Photos/Avatars/avatar-3.jpg" class="rounded-circle">example 1</option>
</select>
            

Multiselect with search box 


<select class="mdb-select" multiple searchable="Search here..">
    <option value="" disabled selected>Choose your country</option>
    <option value="1">USA</option>
    <option value="2">Germany</option>
    <option value="3">France</option>
    <option value="3">Poland</option>
    <option value="3">Japan</option>
</select>
            

Multiselect with label and search box 


<select class="mdb-select" multiple searchable="Search here..">
    <option value="" disabled selected>Choose your country</option>
    <option value="1">USA</option>
    <option value="2">Germany</option>
    <option value="3">France</option>
    <option value="3">Poland</option>
    <option value="3">Japan</option>
</select>
<label>Label example</label>
            

Colorful Multiselect with label and search box 


<select class="mdb-select colorful-select dropdown-primary" multiple searchable="Search here..">
    <option value="" disabled selected>Choose your country</option>
    <option value="1">USA</option>
    <option value="2">Germany</option>
    <option value="3">France</option>
    <option value="3">Poland</option>
    <option value="3">Japan</option>
</select>
<label>Label example</label>
            

Multiselect with options groups and search box 


<select class="mdb-select" multiple searchable="Search here..">
    <optgroup label="team 1" >
        <option value="1">Option 1</option>
        <option value="2">Option 2</option>
    </optgroup>
    <optgroup label="team 2">
        <option value="3">Option 3</option>
        <option value="4">Option 4</option>
    </optgroup>
</select>
            

Multiselect with icons and search box 


<select class="mdb-select" multiple searchable="Search here..">
    <option value="" data-icon="https://mdbootstrap.com/img/Photos/Avatars/avatar-1.jpg" class="rounded-circle">example 1</option>
    <option value="" data-icon="https://mdbootstrap.com/img/Photos/Avatars/avatar-2.jpg" class="rounded-circle">example 2</option>
    <option value="" data-icon="https://mdbootstrap.com/img/Photos/Avatars/avatar-3.jpg" class="rounded-circle">example 1</option>
</select> 

Comments

Popular posts from this blog

Oracle SOA (Service Oriented Architecture) Interview Questions

If you're looking for Oracle SOA Interview Questions for Experienced or Freshers, you are at right place. There are lot of opportunities from many reputed companies in the world. According to research Oracle SOA has a market share of about 32.2%. So, You still have opportunity to move ahead in your career in Oracle SOA Analytics. Mindmajix offers Advanced Oracle SOA Interview Questions 2018 that helps you in cracking your interview & acquire dream career as Oracle SOA Analyst. Q1) Define SOA SOA is also known as the acronym for Service Oriented Architecture. It is also known as a framework for building applications that can be used for commercial purposes. It is important to note in this context that during the development process of these applications, SOA uses loosely coupled strategies. These can be combined to achieve a considerable amount of functionality. Q2) Shed light on the various principles on which SOA is based SOA is based on the following principles. They a...

Build Your Career With TensorFlow Training Online At Mindmajix

Service Desk Analyst Training | Live Service Desk Analyst Certification Training - Mindmajix

What is a service desk analyst? The Service Desk Analyst provides support for basic incident resolution and requests reported to the division service desk. Responsibilities include initial assessment, triage, research, and resolution of basic incidents and requests regarding the use of application software products and/or infrastructure components. What is the role of a service desk analyst? The Service Desk Analyst provides customer support, service and technical support through analysis and problem resolving to enable installation,maintenance,education, implementation and documentation of a variety of software and hardware technologies using remote communication or through phone to the client or the end.Learn how to deal with issues regarding Service Desk Environment and understand the importance of Managing, Meeting and Maintaining Service Levels, Develop a clear understanding of the support tools and technologies available to Service Desk Analysts…etc. What are ob...