Select2ADDONSelect2 is a jQuery-based replacement for select boxes. It supports searching, remote data sets, and pagination of results.
Enhancing native selects with search by using native selects with a better multi-select interface. Easily load items via AJAX and have them searchable. Native selects only support one level of nesting. Select2 does not have this restriction. You can also work with large, remote datasets: ability to partially load a dataset based on the search term.
Find in-depth, guidelines, tutorials and more on Select2's Official Documentation
IE10 Support:Since this is the latest version of select2 with a customized UI to match SmartAdmin WebApp, some parts of select2 may have issues with IE10. This is due to the limitation of IE10 CSS & Javascript engine, which is currently outdated and has no workaround method. You may use earlier version of select2 and its vanilla skin if select2 is a must have for your list of plugins.
Select Single
.select2
class for basic select2 control.
disabled
attribute on <select>
elements. You can also initialize Select2 with disabled: true
to get the same effect.
Infinity
to tell Select2 to never display the search box.
$.ajax
function, or the transport function you specify.
Select Multiple
multiple
attribute
.select2
class for basic select2 control. Use multiple="multiple"
attribute for multiple select box
disabled
attribute on <select>
elements. You can also initialize Select2 with disabled: true
to get the same effect
multiple
attribute with maximumSelectionLength
in the select2 options.
data-icon
to add icon name for each options. And use class .js-select2-icons
to set icon with option.