--- layout: default title: Examples - Select2 slug: examples ---
Select2 can take a regular select box like this...
and turn it into this...
Select2 also supports multi-value select boxes. The select below is declared with the multiple
attribute.
A placeholder value can be defined and will be displayed until a selection is made.
This works for multiple select boxes as well.
Select2 provides a way to load the data from a local array.
You can provide initial selections with array data by providing the option tag for the selected values, similar to how it would be done for a standard select.
Select2 comes with AJAX support built in, using jQuery's AJAX methods.