{"id":7713,"date":"2015-10-18T05:05:35","date_gmt":"2015-10-18T05:05:35","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/10\/18\/select2-select2\/"},"modified":"2015-10-18T05:05:35","modified_gmt":"2015-10-18T05:05:35","slug":"select2-select2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/10\/18\/select2-select2\/","title":{"rendered":"select2\/select2"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/travis-ci.org\/select2\/select2.svg?branch=master\" \/><\/p>\n<p>Select2 is a jQuery-based replacement for select boxes. It supports searching, remote data sets, and pagination of results.<\/p>\n<p>To get started, checkout examples and documentation at https:\/\/select2.github.io\/<\/p>\n<h2>Use cases<\/h2>\n<ul>\n<li>Enhancing native selects with search.<\/li>\n<li>Enhancing native selects with a better multi-select interface.<\/li>\n<li>Loading data from JavaScript: easily load items via AJAX and have them searchable.<\/li>\n<li>Nesting optgroups: native selects only support one level of nesting. Select2 does not have this restriction.<\/li>\n<li>Tagging: ability to add new items on the fly.<\/li>\n<li>Working with large, remote datasets: ability to partially load a dataset based on the search term.<\/li>\n<li>Paging of large datasets: easy support for loading more pages when the results are scrolled to the end.<\/li>\n<li>Templating: support for custom rendering of results and selections.<\/li>\n<\/ul>\n<h2>Browser compatibility<\/h2>\n<ul>\n<li>IE 8+<\/li>\n<li>Chrome 8+<\/li>\n<li>Firefox 10+<\/li>\n<li>Safari 3+<\/li>\n<li>Opera 10.6+<\/li>\n<\/ul>\n<h2>Usage<\/h2>\n<p>You can source Select2 directly from a CDN like JSDliver or CDNJS, download it from this GitHub repo, or use one of the integrations below.<\/p>\n<h2>Integrations<\/h2>\n<h2>Internationalization (i18n)<\/h2>\n<p>Select2 supports multiple languages by simply including the right language JS file (<code>dist\/js\/i18n\/it.js<\/code>, <code>dist\/js\/i18n\/nl.js<\/code>, etc.) after <code>dist\/js\/select2.js<\/code>.<\/p>\n<p>Missing a language? Just copy <code>src\/js\/select2\/i18n\/en.js<\/code>, translate it, and make a pull request back to Select2 here on GitHub.<\/p>\n<h2>Documentation<\/h2>\n<p>The documentation for Select2 is available through GitHub Pages and is located within this repository in the <code>docs<\/code> folder.<\/p>\n<h2>Community<\/h2>\n<p>You can find out about the different ways to get in touch with the Select2 community at the Select2 community page.<\/p>\n<h2>Copyright and license<\/h2>\n<p>The license is available within the repository in the LICENSE file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Select2 is a jQuery-based replacement for select boxes. It supports searching, remote data sets, and pagination of results. To get started, checkout examples and documentation at https:\/\/select2.github.io\/ Use cases Enhancing native selects with search. Enhancing native selects with a better multi-select interface. Loading data from JavaScript: easily load items via AJAX and have them searchable. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7713","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7713"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7713\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}