Multiple Select With Filter And Checkboxes Using jQuery

Multiple Select With Filter And Checkboxes Using jQuery
File Size: 158 KB
Views Total: 7178
Last Update:
Publish Date:
Official Website: Go to website
License: MIT

A jQuery plugin that converts a normal select box into a user-friendly filterable multi-select dropdown where your users are able to select one or more options by checking checkboxes.

Licensed under the LGPL-2.1 License.

More Features:

  • A ROOT checkbox that allows you to select all options with a single click.
  • Compatible with the latest Bootstrap 4.
  • Allows to append more options to the select dropdown via JavaScript.
  • Keyboard accessibility.
  • Especially suitable for tags input that enables the user to select tags from a predefined list.

How to use it:

1. Load jQuery library (required) and Bootstrap's stylesheet (optional but recommended) in the document.

<link rel="stylesheet" href="filter_multi_select.css" />
<script src="filter-multi-select-bundle.min.js"></script>

2. Load the filter-multi-select plugin's JavaScript and Stylesheet in the document.

<link rel="stylesheet" href="/path/to/cdn/bootstrap.min.css" />
<script src="/path/to/cdn/jquery.slim.min.js"></script>

3. Create a basic filterable multielect dropdown by simply attaching the function filterMultiSelect to the existing select box with the multiple attribute:

<select multiple name="language" id="languages">
  <option value="js">JavaScript</option>
  <option value="html">HTML</option>
  <option value="css">CSS</option>
  ... more options here ...
const languages = $('#languages').filterMultiSelect();

4. You can also add options to the multielect dropdown via JavaScript.

  • label: Lable text
  • value: Option value
  • selected: Is selected?
  • disabled: Is disabled?
const languages = $('#languages').filterMultiSelect({
      items: [

5. Available options to customize the multielect dropdown.

const languages = $('#languages').filterMultiSelect({

      // displayed when no options are selected
      placeholderText: "nothing selected"

      // placeholder for search field
      filterText: "Filter"

      // Select All text
      selectAllText: "Select All",

      // determine if is case sensitive
      caseSensitive: false,

      // allows the user to disable and enable options programmatically
      allowEnablingAndDisabling: true

6. API methods.

// check is has an option

// select/deselect an option

// check if an option is selected

// select/deselect all non-disabled options

// enable/disable an option

// check if an option is disabled

// enable/disable the multiselect dropdown

// returns a JSON string of the selected options' values


v1.1.0 (2021-03-11)

  • Append the class filter-multi-select to select elements and have the plugin be applied automatically.
  • Or define your own selector in $.fn.filterMultiSelect.selector.
  • Access all element groups applied by the plugin in $.fn.filterMultiSelect.applied.

About Author:

Author: Andrew


This awesome jQuery plugin is developed by andreww1011. For more Advanced Usages, please check the demo page or visit the official website.