jquery-select2 Questions
13
Basically what I'm looking for is the ability to hide options from the dropdown of select items. So, technically they would still be options, but you just wouldn't be able to click them since they'...
Seabury asked 31/7, 2014 at 16:39
9
I have a secondary select slaved to a primary select (pick a store, then pick a department - identical to pick a country, then pick a state).
I absolutely cannot get select2's ('enable',false) and...
Haggerty asked 16/7, 2013 at 15:36
2
Solved
When using "Multi-Value Select Boxes" http://ivaynberg.github.io/select2/
slect box drop back after each selection.
Is there the way not to do it, so user can select few of it without extra click...
Labionasal asked 16/10, 2014 at 2:5
7
Solved
my select2 is working perfectly, I just have 1 small bug, the arrow down icon from the select box is not showing, do you know guys why?
this make the user a bit confuse I tried find the bug, but...
Pincas asked 22/9, 2017 at 11:9
5
Solved
I am using select v4.0.3. How do I get the replaced/previous value of the select element? I already attached a 'change' listener but I can't seem to find the previous value.
Lyckman asked 8/9, 2016 at 3:37
6
I'm using Select2JS 4.0.5 with PHP and jQuery 3.2.1. jQuery is included first, then right after that select2js then after that the rest of JS libraries. My code
if ($("#company").length > 0){ /...
Retainer asked 15/2, 2018 at 11:51
3
I am using select2 plugin, in that I want to add custom attribute to options
"data-value".
$('select').select2({
data: [
{
id: 'value',
text: 'Text to display'
},
]
});
If I add "data-valu...
Autotype asked 4/4, 2017 at 7:57
3
Solved
I use the Select2 plugin (v 3.5.2) with Ajax to dynamically load elements in the list.
I have an issue as between the initialization of the Select2 (where a url property is set in the ajax helper)...
Beaton asked 21/5, 2015 at 12:14
4
Solved
Is there any way to load select2 to a default value without triggering the change event?
Currently, I am doing:
$('#mylist').val(2).trigger("change");
But this creates a delay where the user w...
Ketty asked 13/1, 2017 at 16:39
3
Solved
I migrated from chosen to select2 plugin because it works better for me, but its documentation is very poor when compared to chosen. Could anyone tell me what option(s) should be used to make selec...
Blowhard asked 22/7, 2015 at 19:4
4
When using Select2 v4, the suggested (actually the right) way to set a selected value programmatically, is to manipulate the underlying select element, add the desired <option> elements you w...
Syllabary asked 13/7, 2017 at 12:15
12
Solved
I use the js library select2. This is a screenshot of what I have now:
Start:
Click on dropdown:
Now is it possible to have an input field to start with and not directly a dropdownlist? I know ...
Hickox asked 26/11, 2013 at 16:48
45
Solved
How do I set the placeholder on value reset by select2. In my example If locations or grade select boxes are clicked and my select2 has a value than the value of select2 should reset and show the d...
Zelikow asked 30/7, 2013 at 20:46
14
I'm using the following piece of code to select item but placeholder already is not visible. I am using this example select2-bootstrap
<div class="form-group" style="width:70px; height:44px;"&...
Kotz asked 25/1, 2015 at 19:44
10
Solved
Texbox is dynamically filled with a remote call using Select2 and how do I set preselected value. Here is the code
<input type="hidden" id="e6">
$("#e6").select2({
placeholder: "Search for...
Orin asked 18/3, 2014 at 14:8
10
Solved
Let's assume you have the following HTML5
<select id="example">
<option value="AA" data-id="143">AA</option>
<option value="BB" data-id="344">BB</option>
</selec...
Audient asked 7/3, 2014 at 21:40
9
Solved
I have used select2 to select multiple options from a drop down, but is it possible for select2 to select the full optgroup?? What I want is when user select the option group all the child options ...
Ark asked 17/11, 2014 at 3:7
6
Solved
I'm using webpack to manage all my assets, when I use this code to require select2 (https://github.com/select2/select2) I got the error
$(...).select2 is not function.
require.ensure(['./vend...
Checkoff asked 20/7, 2016 at 5:49
11
Solved
I am using the select2 control, loading data via ajax. This requires the use of the <input type=hidden..> tag.
Now, I want to retrieve the selected text. (The value property in the data-bind...
Birck asked 6/11, 2013 at 14:24
2
Solved
How can I get the selected text in Select2 to wrap instead of using an ellipsis? The option items wrap, but I'd like the input field to be able to expand down instead of over.
Here's an example:
...
Merryman asked 11/6, 2015 at 18:1
7
Solved
this is my code:
I want to add on my form https://github.com/ng-select/ng-select multi select for tags input.
components.module.ts:
import { NgModule } from '@angular/core';
import { CommonModule...
Fulmer asked 20/7, 2018 at 15:51
3
Solved
I'm trying to place a button into select2 result items (for allowing the user to remove items). I managed to place the buttons, but I didn't manage to handle their click event yet. Somehow the even...
Groupie asked 15/9, 2014 at 12:29
14
Solved
I am using select2.js Version: 3.4.3 with bootstrap
I have one dropdown.
When I click on dropdown, I get a list with search text fields.
But I my cursor is not focused on search text fields.
<...
Kielce asked 17/9, 2014 at 5:35
3
Solved
Implemented Select2 in my project. Using the tag feature provided in the plugin. The feature works as suggested in the documentation, however I am stuck at one point.
I have initialized the tag a...
Tarmac asked 6/9, 2014 at 11:26
19
Solved
What would be the best way to reset the selected item to default? I'm using Select2 library and when using a normal button type="reset", the value in the dropdown doesn't reset.
So when I press my...
Wait asked 4/3, 2013 at 15:39
© 2022 - 2024 — McMap. All rights reserved.