{"id":13402226,"url":"https://github.com/snapappointments/bootstrap-select","last_synced_at":"2025-05-12T05:29:09.283Z","repository":{"id":4818474,"uuid":"5972219","full_name":"snapappointments/bootstrap-select","owner":"snapappointments","description":":rocket: The jQuery plugin that brings select elements into the 21st century with intuitive multiselection, searching, and much more.","archived":false,"fork":false,"pushed_at":"2024-07-29T12:26:57.000Z","size":8982,"stargazers_count":9870,"open_issues_count":316,"forks_count":2717,"subscribers_count":333,"default_branch":"main","last_synced_at":"2025-05-12T01:16:02.616Z","etag":null,"topics":["bootstrap","dropdown","javascript","jquery","select","ui","ux"],"latest_commit_sha":null,"homepage":"https://developer.snapappointments.com/bootstrap-select/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snapappointments.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["caseyjhol"]}},"created_at":"2012-09-26T20:56:59.000Z","updated_at":"2025-05-10T04:50:28.000Z","dependencies_parsed_at":"2024-11-16T02:52:24.370Z","dependency_job_id":"757e9ffb-517b-47d9-b734-d7c2f4d6315d","html_url":"https://github.com/snapappointments/bootstrap-select","commit_stats":{"total_commits":1594,"total_committers":164,"mean_commits":9.71951219512195,"dds":0.5589711417816813,"last_synced_commit":"939e94b14a34759e193f616b753e0a33081cc0c5"},"previous_names":["silviomoreto/bootstrap-select"],"tags_count":76,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snapappointments%2Fbootstrap-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snapappointments%2Fbootstrap-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snapappointments%2Fbootstrap-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snapappointments%2Fbootstrap-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snapappointments","download_url":"https://codeload.github.com/snapappointments/bootstrap-select/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253664009,"owners_count":21944360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","dropdown","javascript","jquery","select","ui","ux"],"created_at":"2024-07-30T19:01:13.186Z","updated_at":"2025-05-12T05:29:09.261Z","avatar_url":"https://github.com/snapappointments.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003ebootstrap-select\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cstrong\u003eThe jQuery plugin that brings select elements into the 21st century with intuitive multiselection, searching, and much more. Now with Bootstrap 5 support.\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://github.com/snapappointments/bootstrap-select/releases/latest\" target=\"_blank\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/github/release/snapappointments/bootstrap-select.svg\" alt=\"Latest release\"\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://www.npmjs.com/package/bootstrap-select\" target=\"_blank\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/npm/v/bootstrap-select.svg\" alt=\"npm\"\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://www.nuget.org/packages/bootstrap-select\" target=\"_blank\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/nuget/v/bootstrap-select.svg\" alt=\"NuGet\"\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://cdnjs.com/libraries/bootstrap-select\" target=\"_blank\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/cdnjs/v/bootstrap-select.svg\" alt=\"CDNJS\"\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://www.jsdelivr.com/package/npm/bootstrap-select\" target=\"_blank\"\u003e\n\t\t\u003cimg src=\"https://data.jsdelivr.com/v1/package/npm/bootstrap-select/badge?style=rounded\" alt=\"jsDelivr\"\u003e\n\t\u003c/a\u003e\n\t\u003cbr\u003e\n\t\u003ca href=\"https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE\" target=\"_blank\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg\" alt=\"License\"\u003e\n\t\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://developer.snapappointments.com/bootstrap-select\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/2874325/38997831-97e12bbe-43ab-11e8-85f5-b8c05d91c7b1.gif\" width=\"289\" height=\"396\" alt=\"bootstrap-select demo\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Demo\n\nYou can view a live demo and some examples of how to use the various options [here](https://developer.snapappointments.com/bootstrap-select/examples/).\n\n## Quick start\n\nBootstrap-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](https://getbootstrap.com/docs/3.4/customize/?id=7830063837006f6fc84f). If using bootstrap-select with Bootstrap v4+, you'll also need Popper.js. For all of Bootstrap v4's requirements, see [Getting started](https://getbootstrap.com/docs/4.1/getting-started/introduction/). A precompiled version of the requirements will be made available in an upcoming release of bootstrap-select.\n\nSeveral quick start options are available:\n\n- [Download the latest release.](https://github.com/snapappointments/bootstrap-select/archive/v1.14.0-beta3.zip)\n- Clone the repo: `git clone https://github.com/snapappointments/bootstrap-select.git`\n- Install with [npm](https://www.npmjs.com/package/bootstrap-select): `npm install bootstrap-select`\n- Install with [yarn](https://yarnpkg.com/package/bootstrap-select): `yarn add bootstrap-select`\n- Install with [Composer](https://packagist.org/packages/snapappointments/bootstrap-select): `composer require snapappointments/bootstrap-select`\n- Install with [NuGet](https://www.nuget.org/packages/bootstrap-select): `Install-Package bootstrap-select`\n- Install with [Bower](https://bower.io): `bower install bootstrap-select`\n- Install via CDN ([cdnjs](https://cdnjs.com/libraries/bootstrap-select), [jsDelivr](https://www.jsdelivr.com/package/npm/bootstrap-select) or [PageCDN](https://pagecdn.com/lib/bootstrap-select)):\n\n```html\n\u003c!-- Latest compiled and minified CSS --\u003e\n\u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap-select@1.14.0-beta3/dist/css/bootstrap-select.min.css\"\u003e\n\n\u003c!-- Latest compiled and minified JavaScript --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/bootstrap-select@1.14.0-beta3/dist/js/bootstrap-select.min.js\"\u003e\u003c/script\u003e\n\n\u003c!-- (Optional) Latest compiled and minified JavaScript translation files --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/bootstrap-select@1.14.0-beta3/dist/js/i18n/defaults-*.min.js\"\u003e\u003c/script\u003e\n```\n\u003e 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.\n\n## Usage\n\n\u003e 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](https://developer.snapappointments.com/bootstrap-select/options/#bootstrap-version) for more information.\n\n### Via `selectpicker` class\nAdd the `selectpicker` class to your select elements to auto-initialize bootstrap-select.\n```html\n\u003cselect class=\"selectpicker\"\u003e\n  \u003coption\u003eMustard\u003c/option\u003e\n  \u003coption\u003eKetchup\u003c/option\u003e\n  \u003coption\u003eBarbecue\u003c/option\u003e\n\u003c/select\u003e\n```\n\n### Via JavaScript\n```js\n// To style only selects with the my-select class\n$('.my-select').selectpicker();\n```\nor\n```js\n// To style all selects\n$('select').selectpicker();\n```\n\nIf calling bootstrap-select via JavaScript, you will need to wrap your code in a [`.ready()`](https://api.jquery.com/ready/) block or place it at the bottom of the page (after the last instance of bootstrap-select).\n\n```js\n$(function () {\n\t$('select').selectpicker();\n});\n```\n\n\nCheck out the [documentation](https://developer.snapappointments.com/bootstrap-select) for further information.\n\n## Bugs and feature requests\n\nAnyone and everyone is welcome to contribute. **Please take a moment to\nreview the [guidelines for contributing](CONTRIBUTING.md)**. Make sure you're using the latest version of bootstrap-select before submitting an issue.\n\n* [Bug reports](CONTRIBUTING.md#bug-reports)\n* [Feature requests](CONTRIBUTING.md#feature-requests)\n\n## Documentation\n\nBootstrap-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](CONTRIBUTING.md#running-documentation-locally).\n\n## Copyright and license\n\nCopyright (C) 2012-2018 [SnapAppointments, LLC](https://snapappointments.com)\n\nLicensed under [the MIT license](LICENSE).\n","funding_links":["https://github.com/sponsors/caseyjhol"],"categories":["JavaScript","前端开发框架及项目"],"sub_categories":["多工具库支持或纯JS"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnapappointments%2Fbootstrap-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnapappointments%2Fbootstrap-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnapappointments%2Fbootstrap-select/lists"}