jquery-select2 Questions
5
Solved
Select2 Jquery Plugin
I was having hard time how to override the default message for minimum length input in jquery Select2.
by default the plugin gives the following message.
Default Text
Plea...
Chord asked 15/11, 2013 at 9:59
11
I am using the awesome select2 to create a multiple selection combo.
I would like to programmatically select default values (as in selections the user has made previously), but I don't know how. I...
Merc asked 22/4, 2013 at 8:47
7
Solved
Is there a way to limit the number of tags a user can add to an input field using Select2?
I have:
$('#tags').select2({
containerCssClass: 'supplierTags',
placeholder: "Usual suppliers...",
mi...
Schoonover asked 27/1, 2014 at 11:43
7
I've built a web-app using a Select2 search box, which connects to our backend via AJAX. The search box passes the query (say "APPLES") to the backend, which then updates the page. How do I program...
Risinger asked 28/5, 2015 at 21:8
5
Solved
In select2 4.0 version there is a theme option. However in the documentation I can't find what does the option mean and how can I create custom theme (https://select2.github.io/examples.html)
I've...
Indulge asked 30/3, 2015 at 23:9
17
Solved
I'm trying to programmatically clear a drop down using the fantastic Select2 library. The drop down is dynamically filled with a remote ajax call using the Select2 query option.
HTML:
<input i...
Allegorical asked 5/11, 2012 at 20:43
8
I've a select2 dropdown which looks like this :
$(function () {
$("#itemSelect").select2().on("select2:select", function (e) {
$("#itemSelect").val(-1).trigger("change");
var id = e.params.dat...
Tooley asked 19/2, 2016 at 8:20
5
It's been hours that I'm trying to get the id of the selected option in v-select, but it returns me the object not the id.
Is there any way to get only the Id (object Id) of the selected option?
I...
Diseased asked 21/10, 2018 at 23:57
4
Solved
I downloaded Select2 jquery plug in and have it all set up - I have a basic dropdown here.
<SELECT NAME="GENDER">
<OPTION VALUE="1">MALE
<OPTION VALUE="2">FEMALE
<OPTION ...
Coulisse asked 3/6, 2014 at 17:21
17
Solved
I have a form with multiple text inputs and some select2 elements.
Using the keyboard to tab between fields works fine - the Select2 element behaves like a form element and receives focus when tab...
Delenadeleon asked 8/1, 2014 at 7:29
5
Solved
I'm using the latest version of select2 (4.0.0) and I can't find the option to make optgroups selectable.
An optgroup is used to group different options of the dropdown, as shown in their basic ex...
Outshoot asked 22/5, 2015 at 20:50
3
Solved
I am using vuejs and creating/deleting dynamic select, which is working fine.
Here is working fiddle : https://jsfiddle.net/nikleshraut/fgpdp700/2/
var vm = new Vue({
el: "#app",
data: {
...
Afrit asked 13/1, 2017 at 11:38
12
Solved
Hello friends this is my code:
<select id='first'>
<option value='1'> First </option>
<option value='2'> Second </option>
<option value='3'> Three </optio...
Hambletonian asked 11/11, 2013 at 14:3
12
Solved
I have select2 controls set up with Ajax (have both single and multiple). I'm trying to have some values on page load but I'm not able to get this to work however. My code for select2 is given belo...
Parturition asked 9/9, 2013 at 13:43
3
Solved
I try to create a Symfony Custom type extending the core "entity" type.
But I want to use it with Select2 version 4.0.0 (ajax now works with "select" html element and not with hidden "input" like ...
Understudy asked 11/5, 2015 at 22:6
3
Solved
In my controller I receive an Illuminate\Http\Request Request that contains some data with values equal to an empty string:
dd($request->input())
//output
array:5 [▼
"_token" => "K43q88mR5...
Smitten asked 3/8, 2016 at 13:51
5
How I can do a form validation (HTML5 Required) with Select2?
Chaim asked 23/9, 2013 at 9:27
4
Solved
Say we have a simple select2 list:
<select id="e1">
<option value="AL">Alabama</option>
...
<option value="WY">Wyoming</option>
</select>
Initiated like:
...
Monotonous asked 11/10, 2013 at 22:30
5
Solved
I have a watch setup against the model of a ui-select2 dropdown (from ui-bootstrap). The watch fires on load but not on data changes and I can't figure out why.
It isn't the usual problem of not ...
Coition asked 22/7, 2013 at 18:46
4
I'm using the jQuery Select2 (v4) plugin for a tag selector.
I want to listen for when a new tag is created in the select element and fire an ajax request to store the new tag. I discovered there ...
Indite asked 22/2, 2015 at 10:50
7
Solved
I am using select2 library for my search.
is there any way to trigger an action after selecting a search result? e.g. open a popup, or a simple js alert.
$("#e6").select2({
placeholder: "Enter a...
Schoen asked 4/9, 2013 at 13:24
6
Solved
I am trying to show selected values in select2-jquery component.
var select = $(".select2").select2({
multiple: true,
placeholder: "",
width:'100%',
data: z
});
var selectedValues = $("#sour...
Incontestable asked 23/7, 2014 at 8:36
7
Solved
As per title, is there a way to force select2 to always create a dropdown instead of a drop-up?
There also appears to be some javascript that is either causing the flip when you scroll above the d...
Unasked asked 14/11, 2013 at 16:53
8
Solved
The documentation is either terrible or I'm missing something. I'm trying to add an error class to a select2 box for form validation. It's just a 1px red border.
I found the containerCssClass meth...
Rabbinical asked 22/2, 2013 at 16:40
2
Solved
How can I get hold on the <option> that was just selected when listening to the select2:select event? Note that this is simple when using a single-select, as when only one option is selected,...
Glebe asked 21/5, 2016 at 16:5
© 2022 - 2024 — McMap. All rights reserved.