Top "Jquery-select2" questions

Select2 is a jQuery-based replacement for select boxes.

How to add a specific class to select2 drop element?

I have select2 customized via css with its general classes and ids. Now, I'm trying to customize a specific class …

javascript jquery css jquery-select2
How to add class to select2 element in v4.0

This is very similar to this question on how to add class to select2 element, however the answers there appear …

javascript jquery jquery-select2
Using Select2's createSearchChoice function

I'm trying to use the createSearchChoice function to allow users to enter their own choice when the default list won't …

jquery jquery-select2
Prevent select2 from flipping the dropdown upward

As per title, is there a way to force select2 to always create a dropdown instead of a drop-up? There …

javascript jquery css jquery-select2 select2-rails
Select2 - make it readonly (not disabled!) from js

How can I dynamically make a select2 combobox read-only? Here's what I've tried so far: $('...').attr({'readonly': 'readonly'}).…

javascript jquery-select2
Display multiple columns in Select2

I'm using select2 and I'd like to show a multicolum table as a drop down, so I need the width …

javascript jquery-select2 dropdownbox
Unable to select item in Select2 drop down

I am working on an app that uses Select2 (version 3.5.1). The HTML to setup this drop down / autocomplete field looks …

javascript html jquery-select2
Select2 add image icon to option dynamically

This is what select2.github.io gives you: function addIcons(opt) { if (!opt.id) { return opt.text; } var $opt = $( '&…

jquery jquery-select2
I need to add "Add new item" option in Select2

I want to add a button in first element of the list to "Add new item". If user clicks on …

jquery jquery-select2 jquery-select2-4
How to sort the select2 (jQuery plugin) options alphabetically?

I want to sort the select2 options in alphabetical order. I have the following code and would like to know, …

javascript jquery jquery-select2