Top "Jquery-select2" questions

Select2 is a jQuery-based replacement for select boxes.

Select2 dropdown doesn't close on click

I'm using Select2 (v4) in a multiple select form and having difficulty getting the dropdown close functionality I need. I …

javascript jquery ios jquery-select2 jquery-select2-4
Allow the addition of new values to a ChoiceType Field

I use Form Component and have a ChoiceType field on the form which is rendered to a select field. On …

symfony jquery-select2 symfony2-forms
maximumSelectionSize isn't working in Select2

I have a multivalue select, and I want to set the restriction on number of selected items using the select2 …

jquery compatibility jquery-select2 jquery-select2-4 jquery-select2-3
How to test a Select2 element with capybara DSL?

I have a Select2 element on a page that loads results via ajax. Would like to test this with capybara/…

ruby-on-rails capybara capybara-webkit jquery-select2
Select2.js mobile & tablet support

Select2 does indicate its support for desktop browser version to be: IE8+, Chrome 8+, Firefox 10+, Safari 3+, Opera 10.6+ However, I cannot find …

mobile cross-browser jquery-select2 tablet cross-device
Display result matching optgroup using select2

I'm using select2 with Bootstrap 3. Now I would like to know whether it is possible to display all optgroup items …

jquery-select2 optgroup
cannot read property 'id' of undefined select2

I used Select2 4.0.6, I have a bug like below: allowClear gives "Uncaught TypeError: Cannot read property 'id' of undefined" when …

javascript jquery html jquery-select2
Select2 - Sorting results by query

I'm using Select2 version 4.0.0. If my results contain multiple words, and the user enters one of those words, I want …

javascript jquery jquery-select2 jquery-select2-4
MVC 5 Dropdownlistfor multiselect value binding in edit view

I have a select2 multiselect dropdown in edit view. When i try to bind selected values to the dropdown, it …

c# asp.net-mvc jquery-select2 dropdownlistfor
Select2 searches inside the html of the formatted options

I am using the select2 widget, and I need to display the search results formatted as html. So I am …

jquery-select2 html-escape-characters