Select2 form elements in Joomla 3

SELECT2 form elements in Joomla - example component

Test 1: HTML select list & simple select2

Your most favourite town/city:

Note that width is inherited from style atribute of the select form element.

Test 2: JHtml 'select.genericlist' & select2 items with image

Your favourite car:

Note that width is set as an option of JHtml 'formbehavior2.select2'

Test 3: JHtml 'select.groupedlist' & select2 multiple items with image

What countries did you visit? (names in Czech)

Download

Download this Joomla 3.x demo component and install it on your site to test functionality of Select2.
Select2 Joomla demo component