Top "Jquery-select2" questions

Select2 is a jQuery-based replacement for select boxes.

JQuery Select2 - How to select all options

I'm using jQuery select2 multi select dropdown. I need to select all options in a dropdown from code. Basically there …

jquery jquery-select2
Select2 start with input field instead of dropdown

I use the js library select2. This is a screenshot of what I have now: Start: Click on dropdown: Now …

javascript jquery drop-down-menu input jquery-select2
Add class to select2 element

The documentation is either terrible or I'm missing something. I'm trying to add an error class to a select2 box …

jquery jquery-select2
Programmatically set the value of a Select2 ajax

I have a Select2 auto-complete input (built via SonataAdmin), but cannot for the life of me figure out how to …

javascript jquery jquery-select2 sonata-admin
$watch not firing on data change

I have a watch setup against the model of a ui-select2 dropdown (from ui-bootstrap). The watch fires on load but …

angularjs jquery-select2 angular-ui-bootstrap
How to remove select2 from dom

Say we have a simple select2 list: <select id="e1"> <option value="AL">Alabama</option&…

javascript jquery-select2
How to remove selected option from the option list in select2 multiselect and show selected options in the order they are selected

I have select2 multi select field in my form where I want to remove the selected option from the dropdown …

jquery jquery-select2 select2
How to make select2 work with jquery.validation plugin?

I'm trying to validate select2 field using jquey.validation plugin but nothing happens. I want to make select required field. …

jquery jquery-validate jquery-select2
select2 allowClear not enabled when options set dynamically

When I create select2 dropdowns that are dynamically driven by the selection in another select2 dropdown, the allowClear button for …

jquery jquery-select2
How to clean completely select2 control?

I'm working with the awesome select2 control. I'm trying to clean and disable the select2 with the content too so …

javascript jquery jquery-ui jquery-select2