Documentation v8.1.6

Preview Downloads Purchase

Overview

Bootstrap Select jQuery plugin that brings select elements into the 21st century with intuitive multiselection, searching, and much more. Now with Bootstrap 5 support. For full documentation please check the plugin's documentation.

Usage

Bootstrap Select's CSS and JS bundles are separate from our global bundle and required to be included and initialized manually on related pages.
<link href="assets/plugins/custom/bootstrap-select/bootstrap-select.bundle.css" rel="stylesheet" type="text/css"/>
<script src="assets/plugins/custom/bootstrap-select/bootstrap-select.bundle.js"></script>

Initialization

  • Bootstrap Select instances can be initialized via .selectpickerclass as explained in the Documentation.
  • Allternatively, Bootstrap Select instances can also be initialized via $(element).selectpicker();jQuery method as explained in the Documentation.

Basic Example

A basic example of Bootstrap Select. For more examples, please refer to the official documentation.
<select class="selectpicker">
    <option>Mustard</option>
    <option>Ketchup</option>
    <option>Relish</option>
</select>

Grouped Example

A grouped example of Bootstrap Select. For more examples, please refer to the official documentation.
<select class="selectpicker">
    <optgroup label="Picnic">
        <option>Mustard</option>
        <option>Ketchup</option>
        <option>Relish</option>
    </optgroup>
    <optgroup label="Camping">
        <option>Tent</option>
        <option>Flashlight</option>
        <option>Toilet Paper</option>
    </optgroup>
</select>

Multiple Selection Example

A multiple selection example of Bootstrap Select. For more examples, please refer to the official documentation.
<select class="selectpicker" multiple>
    <option>Mustard</option>
    <option>Ketchup</option>
    <option>Relish</option>
</select>

Search Example

Add data-live-search="true"HTML attribute to enable search to Bootstrap Select. For more examples, please refer to the official documentation.
<select class="selectpicker" data-live-search="true">
    <option data-tokens="ketchup mustard">Hot Dog, Fries and a Soda</option>
    <option data-tokens="mustard">Burger, Shake and a Smile</option>
    <option data-tokens="frosting">Sugar, Spice and all things nice</option>
</select>
Learn & Get Inspired

Support at devs.keenthemes.com

Join our developers community to find answer to your question and help others. FAQs
Get Support
Video Tutorials
From guides and how-tos, to live demos and code examples to get started right away.
Metronic Downloads
Download your prefered framework and demo with one click.
What's New ?
Latest features and improvements added with our users feedback in mind.
Buy now