Skip to content
Related Articles

Related Articles

jQuery multiple select plugin for Bootstrap

Improve Article
Save Article
  • Difficulty Level : Medium
  • Last Updated : 17 Aug, 2021
Improve Article
Save Article

jQuery provides a variety of plugins for bootstrap for distinctive purposes which can be easily integrated into a web application, making the websites and applications look more attractive and reliable. 

Plugins can be included in two ways i.e. individually by using Bootstrap’s individual *.js files, or all at once, utilizing bootstrap.js.

Bootstrap multiselect is also one of the jQuery plugins for Bootstrap, which enables the client to choose more than one alternative from a dropdown list, at once. Utilizing the multiple select plugins, dropdown alternatives act as checkboxes, so that the client can choose multiple alternatives, unlike normal dropdown where only one alternative can be chosen. The plugin is based on the Twitter Bootstrap system and comes with numerous features. In runtime, simple HTML select can be effortlessly changed into a Bootstrap button by utilizing the same.

You need to add the following resources to your HTML file to use the bootstrap multiple select jQuery plugin in your website.

  • Stylesheet to enable the alternatives to be opened as a dropdown.

<link href=”” rel=”stylesheet”>

  • Include Bootstrap and jQuery files as scripts.

<script src=””></script> 
<script src=””></script>

  • Bootstrap CDN links to enable the multi-select feature in the dropdown list.

rel=”stylesheet” >

  • Now create an HTML dropdown with a list of alternatives.

<select id=”checkboxes” multiple=”multiple”> 
<option value=”Array”>Array</option> 
<option value=”Linked list”>Linked list</option> 
<option value=”Strings”>Strings</option> 
<option value=”Stack”>Stack</option> 
<option value=”Queue”>Queue</option> 
<option value=”Graph”>Graph</option> 
<option value=”Tree”>Tree</option> 
<option value=”Maps”>Maps</option> 

  • And don’t forget to initialize the plugin by calling the multiselect() function.


After initializing the plugin, the selected dropdown component ($(‘#checkboxes’)) will be replaced with a bootstrap button that shows available options with checkboxes.



      <script src=
      <link href=
      <script src=
      <script src=
      <link href=
            margin-top: 30px; 
            color: green; 
            font-size: 20px;
    <p class="container"><b>GeeksforGeeks</b></p>
    <div  class="container"
        <b>Select your choice:</b
        <select id="checkboxes" multiple="multiple">
            <option value="Linked list">Linked list</option>       
            <option value="Array">Array</option>            
            <option value="Strings">Strings</option>   
            <option value="Stack">Stack</option
            <option value="Queue">Queue</option>
            <option value="Graph">Graph</option
            <option value="Tree">Tree</option>
            <option value="Maps">Maps</option>
        $(document).ready(function() { 

Output: Now, as you can see in the output, a multi-select dropdown list is created where the client can choose multiple alternatives at once, by utilizing the multiple select plugins, integrated by following the above steps.

supported browser:

  • Google Chrome
  • Microsoft Edge
  • Firefox
  • Opera
  • Safari

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!