The basics

Single select boxes

Select2 can take a regular select box like this...

and turn it into this...

{% highlight html linenos %} {% endhighlight %}

Multiple select boxes

Select2 also supports multi-value select boxes. The select below is declared with the multiple attribute.

{% highlight html linenos %} {% endhighlight %}

Select boxes with labels

You can, and should, use a <label> with Select2, just like any other <select> element.

{% highlight html linenos %} {% endhighlight %}