Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

bootstrap-select

> 编程语言
Open source

:rocket: The jQuery plugin that brings select elements into the 21st century with intuitive multiselection, searching, and much more.

9.8K stars0 likes1 views
WebsiteGitHub

About

:rocket: The jQuery plugin that brings select elements into the 21st century with intuitive multiselection, searching, and much more.

bootstrap-select

The jQuery plugin that brings select elements into the 21st century with intuitive multiselection, searching, and much more. Now with Bootstrap 5 support.

</a>
<a href="https://www.npmjs.com/package/bootstrap-select" target="_blank">
	
</a>
<a href="https://www.nuget.org/packages/bootstrap-select" target="_blank">
	
</a>
<a href="https://cdnjs.com/libraries/bootstrap-select" target="_blank">
	
</a>
<a href="https://www.jsdelivr.com/package/npm/bootstrap-select" target="_blank">
	
</a>
<br>
<a href="https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE" target="_blank">
	
</a>

Demo

You can view a live demo and some examples of how to use the various options here.

Quick start

Bootstrap-select requires jQuery v1.9.1+, Bootstrap’s dropdown.js component, and Bootstrap's CSS. If you're not already using Bootstrap in your project, a precompiled version of the Bootstrap v3.4.1 minimum requirements can be downloaded here. If using bootstrap-select with Bootstrap v4+, you'll also need Popper.js. For all of Bootstrap v4's requirements, see Getting started. A precompiled version of the requirements will be made available in an upcoming release of bootstrap-select.

Several quick start options are available:

  • Download the latest release.
  • Clone the repo: git clone https://github.com/snapappointments/bootstrap-select.git
  • Install with npm: npm install bootstrap-select
  • Install with yarn: yarn add bootstrap-select
  • Install with Composer: composer require snapappointments/bootstrap-select
  • Install with NuGet: Install-Package bootstrap-select
  • Install with Bower: bower install bootstrap-select
  • Install via CDN (cdnjs, jsDelivr or PageCDN):
xml

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap-select.min.css">

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap-select.min.js"></script>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/i18n/defaults-*.min.js"></script>

The CDN is updated after the release is made public, which means that there is a delay between the publishing of a release and its availability on the CDN.

Usage

Bootstrap 4 only works with bootstrap-select v1.13.0+. By default, bootstrap-select automatically detects the version of Bootstrap being used. However, there are some instances where the version detection won't work. See the documentation for more information.

Via selectpicker class

Add the selectpicker class to your select elements to auto-initialize bootstrap-select.

xml
<select class="selectpicker">
  <option>Mustard</option>
  <option>Ketchup</option>
  <option>Barbecue</option>
</select>

Via JavaScript

javascript
// To style only selects with the my-select class
$('.my-select').selectpicker();

or

javascript
// To style all selects
$('select').selectpicker();

If calling bootstrap-select via JavaScript, you will need to wrap your code in a .ready() block or place it at the bottom of the page (after the last instance of bootstrap-select).

javascript
$(function () {
	$('select').selectpicker();
});

Check out the documentation for further information.

Bugs and feature requests

Anyone and everyone is welcome to contribute. Please take a moment to review the guidelines for contributing. Make sure you're using the latest version of bootstrap-select before submitting an issue.

  • Bug reports
  • Feature requests

Documentation

Bootstrap-select's documentation, included in this repo in the root directory, is built with MkDocs and hosted at https://developer.snapappointments.com/bootstrap-select. The documentation may also be run locally.

Copyright and license

Copyright (C) 2012-2018 SnapAppointments, LLC

Licensed under the MIT license.

Issues· 319 open

View all issuesOpen on GitHub
  • #2889

    v1.14.0-beta3 support jQuery 4

    Updated May 13, 2026
  • #2773

    BS5 Dropdown is not a constructor error

    Updated Apr 17, 2026
  • #2881

    When attempting to disable selectpicker, the menu itself still opens.

    bugUpdated Mar 30, 2026
  • #2738

    Options and selection are duplicated

    bugUpdated Feb 13, 2026
  • #2886

    multi-select dropdown not opening

    bugUpdated Dec 3, 2025
  • #2503

    Selects not working on firefox and other browsers occasionally

    bugUpdated Nov 25, 2025
  • #2884

    Enable/Disable Select All and Deselect All individually

    Updated Aug 28, 2025
  • #2228

    v2.0.0 Roadmap

    Updated Jul 17, 2025
  • #2522

    Selectpicker flows off screen

    bugUpdated May 28, 2025
  • #2837

    it works very well (bootstrap-select-v1.14.0-beta3-updated and bootstrap 5.3.0)

    bugUpdated Apr 30, 2025

> Tags

JavaScriptbootstrapdropdownjavascriptjquery

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言