1
0
mirror of synced 2024-11-22 21:16:10 +03:00
Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.
Go to file
Igor Vaynberg 3d4595c834 Merge pull request #1284 from foxel/master
this.autofocus is undefined on destroy inside init
2013-05-08 22:30:58 -07:00
component.json #1260 closes #1252 fixes #992 - retrieve option text as value when value is not defined 2013-05-06 09:54:17 -07:00
LICENSE strip down license header 2013-02-21 09:16:25 -08:00
README.md Add link to Yii integration. Closes #1102 2013-03-27 09:00:19 -07:00
release.sh switch release to uglifyjs instead of closure 2013-03-25 12:13:45 -07:00
select2_locale_ca.js Added Catalan translation 2013-04-06 11:48:35 +02:00
select2_locale_cs.js Czech translation 2013-03-26 01:56:36 +01:00
select2_locale_da.js ... 2013-04-03 20:28:05 +02:00
select2_locale_de.js add German translation 2013-02-20 22:42:36 +01:00
select2_locale_en.js.template Suggesting author header in translation files 2013-03-13 18:01:28 +01:00
select2_locale_es.js added spanish translation. fixes #883 2013-02-19 09:17:15 -08:00
select2_locale_et.js Fixed language code for Estonian translation file [Fixes #1207] 2013-04-23 14:55:58 -04:00
select2_locale_eu.js Added Basque translation. 2013-03-18 16:02:55 +01:00
select2_locale_fr.js Update select2_locale_fr.js 2013-04-27 11:05:35 -03:00
select2_locale_gl.js Galician translation 2013-04-27 13:42:09 +02:00
select2_locale_he.js Repack Hebrew Translation. closes #1154 2013-04-08 09:57:20 -07:00
select2_locale_hr.js Add Croatian translation 2013-03-25 13:34:31 +01:00
select2_locale_hu.js added Hungarian translation 2013-02-20 02:40:45 -08:00
select2_locale_it.js add [it] locale transations 2013-02-13 00:53:25 -08:00
select2_locale_ja.js Add Japanese translation 2013-04-03 17:10:24 +09:00
select2_locale_lt.js Update select2_locale_lt.js 2013-05-03 01:56:21 +03:00
select2_locale_lv.js Added Latvian translation 2013-04-29 13:53:29 +03:00
select2_locale_mk.js Macedonian locale added 2013-04-11 16:18:34 +02:00
select2_locale_nl.js Dutch language support 2013-03-07 20:24:45 +01:00
select2_locale_pl.js Add Polish translation 2013-03-27 15:07:52 +01:00
select2_locale_pt-BR.js Add Brazilian Portuguese translation 2013-02-22 02:37:41 -03:00
select2_locale_pt-PT.js Fixed artifacts in pt-PT translation 2013-03-04 20:35:55 -05:00
select2_locale_ro.js Added Romanian translation 2013-03-15 13:26:42 +02:00
select2_locale_ru.js fixed Russian translation 2013-05-03 18:10:07 +03:00
select2_locale_sk.js Create Slovak localisation file 2013-03-14 21:42:54 +01:00
select2_locale_sv.js Swedish translation 2013-03-13 19:06:08 +01:00
select2_locale_tr.js Useless space removed. 2013-03-30 12:30:29 +02:00
select2_locale_ua.js Create Ukrainian translation file 2013-03-19 22:58:59 +02:00
select2_locale_zh-CN.js Chinese Locale Added 2013-03-04 01:46:06 +08:00
select2_locale_zh-TW.js Update select2_locale_zh-TW.js 2013-05-06 14:22:41 +08:00
select2-spinner.gif Rename spinner.gif to select2-spinner.gif to prevent collisions with very common filename. 2012-10-13 12:31:25 -05:00
select2.css prevent scrollback left on opening. fixes #467 2013-05-06 23:40:31 -07:00
select2.jquery.json #1260 closes #1252 fixes #992 - retrieve option text as value when value is not defined 2013-05-06 09:54:17 -07:00
select2.js Fixed undefined this.autofocus on destroy while creating on element that already have select2 applied 2013-05-09 10:36:46 +07:00
select2.png Retina-ize icons 2012-08-20 16:26:18 +01:00
select2x2.png Retina-ize icons 2012-08-20 16:26:18 +01:00

Select2

Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.

To get started checkout examples and documentation at http://ivaynberg.github.com/select2

What Usecases Does Select2 Support

  • Enhances native selects with search
  • Enhances native selects with a better multi-select interface
  • Loading data from javascript: easily load items via ajax and have them searchable
  • Nested optgroups: native selects only support one level of nested, Select2 does not have this restriction
  • Tagging: ability to add new items on the fly
  • Working with large remote datesets: ability to partially load a dataset based on the search term
  • Paging of large datasets: easy support for loading more pages when the results are scrolled to the end
  • Templating: support for custom rendering of results and selections

Browser Compatibility

  • IE 8+ (7 mostly works except for issue with z-index)
  • Chrome 8+
  • Firefox 3.5+
  • Safari 3+
  • Opera 10.6+

Integrations

Internationalization (i18n)

Select2 supports multiple languages by simply including the right language JS file (select2_locale_it.js, select2_locale_nl.js etc.).

Missing a language? Just copy select2_locale_en.js.template, translate it and make a pull request back to Select2 here on Github.

Bug tracker

Have a bug? Please create an issue here on GitHub!

https://github.com/ivaynberg/select2/issues

Mailing list

Have a question? Ask on our mailing list!

select2@googlegroups.com

https://groups.google.com/d/forum/select2

Copyright 2012 Igor Vaynberg

This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU General Public License version 2 (the "GPL License"). You may choose either license to govern your use of this software only upon the condition that you accept all of the terms of either the Apache License or the GPL License.

You may obtain a copy of the Apache License and the GPL License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0 http://www.gnu.org/licenses/gpl-2.0.html

Unless required by applicable law or agreed to in writing, software distributed under the Apache License or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License and the GPL License for the specific language governing permissions and limitations under the Apache License and the GPL License.