{"id":13399132,"url":"https://github.com/select2/select2","last_synced_at":"2025-05-12T18:14:18.066Z","repository":{"id":2632380,"uuid":"3620194","full_name":"select2/select2","owner":"select2","description":"Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.","archived":false,"fork":false,"pushed_at":"2024-09-11T14:53:51.000Z","size":14127,"stargazers_count":25993,"open_issues_count":147,"forks_count":6248,"subscribers_count":710,"default_branch":"develop","last_synced_at":"2025-05-01T13:11:22.002Z","etag":null,"topics":["hacktoberfest","javascript","jquery","select2"],"latest_commit_sha":null,"homepage":"https://select2.org/","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/select2.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","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":"kevin-brown","open_collective":"select2"}},"created_at":"2012-03-04T18:43:12.000Z","updated_at":"2025-04-30T11:52:51.000Z","dependencies_parsed_at":"2023-02-16T00:15:58.031Z","dependency_job_id":"f0a921a8-1d3b-4a15-8d10-9db387b8faa9","html_url":"https://github.com/select2/select2","commit_stats":{"total_commits":2105,"total_committers":564,"mean_commits":3.732269503546099,"dds":0.7909738717339667,"last_synced_commit":"595494a72fee67b0a61c64701cbb72e3121f97b9"},"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/select2%2Fselect2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/select2%2Fselect2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/select2%2Fselect2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/select2%2Fselect2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/select2","download_url":"https://codeload.github.com/select2/select2/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252392504,"owners_count":21740523,"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":["hacktoberfest","javascript","jquery","select2"],"created_at":"2024-07-30T19:00:34.434Z","updated_at":"2025-05-05T15:24:45.609Z","avatar_url":"https://github.com/select2.png","language":"JavaScript","readme":"Select2\n=======\n![Build Status][github-actions-image]\n[![Financial Contributors on Open Collective](https://opencollective.com/select2/all/badge.svg?label=financial+contributors)](https://opencollective.com/select2)\n[![jsdelivr](https://data.jsdelivr.com/v1/package/npm/select2/badge)][jsdelivr]\n[![cdnjs](https://img.shields.io/cdnjs/v/select2.svg)][cdnjs]\n\nSelect2 is a jQuery-based replacement for select boxes. It supports searching,\nremote data sets, and pagination of results.\n\nTo get started, check out examples and documentation at\nhttps://select2.org/\n\nUse cases\n---------\n* Enhancing native selects with search.\n* Enhancing native selects with a better multi-select interface.\n* Loading data from JavaScript: easily load items via AJAX and have them\n  searchable.\n* Nesting optgroups: native selects only support one level of nesting. Select2\n  does not have this restriction.\n* Tagging: ability to add new items on the fly.\n* Working with large, remote datasets: ability to partially load a dataset based\n  on the search term.\n* Paging of large datasets: easy support for loading more pages when the results\n  are scrolled to the end.\n* Templating: support for custom rendering of results and selections.\n\nBrowser compatibility\n---------------------\n* IE 8+\n* Chrome 8+\n* Firefox 10+\n* Safari 3+\n* Opera 10.6+\n\nUsage\n-----\nYou can source Select2 directly from a CDN like [jsDelivr][jsdelivr] or\n[cdnjs][cdnjs], [download it from this GitHub repo][releases], or use one of\nthe integrations below.\n\nIntegrations\n------------\nThird party developers have created plugins for platforms which allow Select2 to be integrated more natively and quickly. For many platforms, additional plugins are not required because Select2 acts as a standard `\u003cselect\u003e` box.\n\nPlugins\n\n* [Backdrop CMS][backdrop-cms] - [backdrop-select2]\n* [Django]\n  - [django-autocomplete-light]\n  - [django-easy-select2]\n  - [django-select2]\n* [Drupal] - [drupal-select2]\n* [Meteor] - [meteor-select2]\n* [Ruby on Rails][ruby-on-rails] - [select2-rails]\n* [Wicket] - [wicketstuff-select2]\n* [Yii 2][yii2] - [yii2-widget-select2]\n* [Angularjs][angularjs] - [mdr-angular-select2]\n\nThemes\n\n- [Bootstrap 3][bootstrap3] - [select2-bootstrap-theme]\n- [Bootstrap 4][bootstrap4] - [select2-bootstrap4-theme]\n- [Bootstrap 5](https://getbootstrap.com/docs/5.0) - [select2-bootstrap-5-theme](https://github.com/apalfrey/select2-bootstrap-5-theme)\n- [Flat UI][flat-ui] - [select2-flat-theme]\n\nMissing an integration? Modify this `README` and make a pull request back here to Select2 on GitHub.\n\nInternationalization (i18n)\n---------------------------\nSelect2 supports multiple languages by simply including the right language JS\nfile (`dist/js/i18n/it.js`, `dist/js/i18n/nl.js`, etc.) after\n`dist/js/select2.js`.\n\nMissing a language? Just copy `src/js/select2/i18n/en.js`, translate it, and\nmake a pull request back to Select2 here on GitHub.\n\nDocumentation\n-------------\nThe documentation for Select2 is available\n[online at the documentation website][documentation] and is located within the\n[`docs` directory of this repository][documentation-directory].\n\nCommunity\n---------\nYou can find out about the different ways to get in touch with the Select2\ncommunity at the [Select2 community page][community].\n\nCopyright and license\n---------------------\nThe license is available within the repository in the [LICENSE][license] file.\n\nContributors\n------------\n\n### Code Contributors\n\nThis project exists thanks to all the people who contribute. [[Contribute](.github/CONTRIBUTING.md)].\n\u003ca href=\"https://github.com/select2/select2/graphs/contributors\"\u003e\u003cimg src=\"https://opencollective.com/select2/contributors.svg?width=890\u0026button=false\" /\u003e\u003c/a\u003e\n\n### Financial Contributors\n\nBecome a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/select2/contribute)]\n\n#### Individuals\n\n\u003ca href=\"https://opencollective.com/select2\"\u003e\u003cimg src=\"https://opencollective.com/select2/individuals.svg?width=890\"\u003e\u003c/a\u003e\n\n#### Organizations\n\nSupport this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/select2/contribute)]\n\n\u003ca href=\"https://opencollective.com/select2/organization/0/website\"\u003e\u003cimg src=\"https://opencollective.com/select2/organization/0/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/select2/organization/1/website\"\u003e\u003cimg src=\"https://opencollective.com/select2/organization/1/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/select2/organization/2/website\"\u003e\u003cimg src=\"https://opencollective.com/select2/organization/2/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/select2/organization/3/website\"\u003e\u003cimg src=\"https://opencollective.com/select2/organization/3/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/select2/organization/4/website\"\u003e\u003cimg src=\"https://opencollective.com/select2/organization/4/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/select2/organization/5/website\"\u003e\u003cimg src=\"https://opencollective.com/select2/organization/5/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/select2/organization/6/website\"\u003e\u003cimg src=\"https://opencollective.com/select2/organization/6/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/select2/organization/7/website\"\u003e\u003cimg src=\"https://opencollective.com/select2/organization/7/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/select2/organization/8/website\"\u003e\u003cimg src=\"https://opencollective.com/select2/organization/8/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/select2/organization/9/website\"\u003e\u003cimg src=\"https://opencollective.com/select2/organization/9/avatar.svg\"\u003e\u003c/a\u003e\n\n\n[cdnjs]: http://www.cdnjs.com/libraries/select2\n[community]: https://select2.org/getting-help\n[documentation]: https://select2.org\n[documentation-directory]: https://github.com/select2/select2/tree/develop/docs\n[freenode]: https://freenode.net/\n[github-actions-image]: https://github.com/select2/select2/workflows/CI/badge.svg\n[jsdelivr]: https://www.jsdelivr.com/package/npm/select2\n[license]: LICENSE.md\n[releases]: https://github.com/select2/select2/releases\n\n[angularjs]: https://angularjs.org/\n[backdrop-cms]: https://backdropcms.org/\n[backdrop-select2]: https://backdropcms.org/project/select2\n[bootstrap3]: https://getbootstrap.com/\n[bootstrap4]: https://getbootstrap.com/\n[django]: https://www.djangoproject.com/\n[django-autocomplete-light]: https://github.com/yourlabs/django-autocomplete-light\n[django-easy-select2]: https://github.com/asyncee/django-easy-select2\n[django-select2]: https://github.com/codingjoe/django-select2\n[drupal]: https://www.drupal.org/\n[drupal-select2]: https://www.drupal.org/project/select2\n[flat-ui]: http://designmodo.github.io/Flat-UI/\n[mdr-angular-select2]: https://github.com/modulr/mdr-angular-select2\n[meteor]: https://www.meteor.com/\n[meteor-select2]: https://github.com/nate-strauser/meteor-select2\n[ruby-on-rails]: http://rubyonrails.org/\n[select2-bootstrap-theme]: https://github.com/select2/select2-bootstrap-theme\n[select2-bootstrap4-theme]: https://github.com/ttskch/select2-bootstrap4-theme\n[select2-flat-theme]: https://github.com/techhysahil/select2-Flat_Theme\n[select2-rails]: https://github.com/argerim/select2-rails\n[vue.js]: http://vuejs.org/\n[select2-vue]: http://vuejs.org/examples/select2.html\n[wicket]: https://wicket.apache.org/\n[wicketstuff-select2]: https://github.com/wicketstuff/core/tree/master/select2-parent\n[yii2]: http://www.yiiframework.com/\n[yii2-widget-select2]: https://github.com/kartik-v/yii2-widget-select2\n","funding_links":["https://github.com/sponsors/kevin-brown","https://opencollective.com/select2","https://opencollective.com/select2/contribute","https://opencollective.com/select2/organization/0/website","https://opencollective.com/select2/organization/1/website","https://opencollective.com/select2/organization/2/website","https://opencollective.com/select2/organization/3/website","https://opencollective.com/select2/organization/4/website","https://opencollective.com/select2/organization/5/website","https://opencollective.com/select2/organization/6/website","https://opencollective.com/select2/organization/7/website","https://opencollective.com/select2/organization/8/website","https://opencollective.com/select2/organization/9/website"],"categories":["JavaScript","Select box (combo box)","Form Widgets","前端开发框架及项目","Form Widgets [🔝](#readme)","UI","10. 表单处理","Animation","表单组件"],"sub_categories":["Select","其他_文本生成、文本对话","选择","10.2 \u003c select \u003e 相关 ###","Forms","选择器","10.3 \u003c select \u003e 相关"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselect2%2Fselect2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselect2%2Fselect2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselect2%2Fselect2/lists"}