jquery-select2 Questions
1
Solved
I have a select:
<select data-bind="options : PeriodeOptions, optionsValue : 'Periode',
optionsText : function(item) { return AddLock(item)}" id="SelectPeriode"></select>
And I ha...
Natala asked 29/9, 2015 at 15:25
1
Solved
I'm trying to paginate results (every 25 rows) using Select2 4.0, but I don't know how to achieve it. Does somebody know how to do it?
If the user reach the end of the 25 rows and if there is mor...
Sassoon asked 12/9, 2015 at 0:2
2
Solved
I have two examples.
This one is with a normal select2 with static inputs which works with default fields beforehand:
http://jsfiddle.net/z96Ca/2/
Next is a select2 with an ajax call and the def...
Ghoul asked 13/3, 2014 at 23:24
1
Solved
I'm trying to force the open method and select item with select2 like this.
$(".select").select2('open')
$(".select").on('select2-loaded', function (e) {
items = e.items.results;
if (items.len...
Liliuokalani asked 1/9, 2015 at 15:35
2
Solved
I'm trying to use Select2 (https://select2.github.io) to allow a user to type multiple tags into a field before submitting a form. In my Laravel PHP app, I'll then take those tags, determine if the...
Organist asked 15/8, 2015 at 19:31
2
Solved
I have a select2 input that I'm using and on 'change' I'm grabbing the values and performing an action. I'm trying to clear that select2 without triggering a change event. Is this possible?
To cle...
Robers asked 23/7, 2013 at 19:48
1
Is there a way to have the Select2 dropdown appear only after 3 or more chars have been typed?
Doha asked 20/7, 2015 at 11:45
1
Solved
I am using select2 with spring mvc. I got the data from my controller that I need to display here in terms of options. But I want them to be grouped as optgroup and also I want images to be appende...
Gilbertina asked 16/7, 2015 at 11:0
2
Solved
I am using select2 in tag mode. My item text is a link, e.g.:
<a href='url'>tag1</a>.
select2 seems to be swallowing the click event on the tag (selected choice) so I cannot navigate...
Amerce asked 25/1, 2014 at 10:32
1
In my project I'm using select2 component. To my selected elements I added icon and description. Code is something like this:
function format(profile_opt) {
return profile_opt.text + "<br>&...
Gaeta asked 5/9, 2014 at 13:36
2
TL;DR: I need to set a default value for display on a select2 field, bound via knockout, but the select2 binding keeps overriding my viewmodel value to "" instead of accepting the value.
The Ingre...
Priapic asked 12/11, 2013 at 15:34
1
I want to create multilevel select2 options with indentation but I don't want to use optgroup elements for this because I want to allow select also main categories. Is there any way to style if for...
Huck asked 13/6, 2015 at 15:12
5
The following function gets json data from URL and populates a select element with jQuery. I am than using Select2 to transform that drop down in a field with autocomplete function.
Everything wor...
Adjoining asked 24/7, 2013 at 10:10
3
Solved
this example is not working at all.. Can someone please create this in jfiddle????
Here is the example site.
https://select2.github.io/examples.html
Thank you so much for the help!!!
Vaasa asked 22/4, 2015 at 19:42
2
Solved
I am trying to get dynamic drop downs working with Laravel and Select2. There are two drop downs; one for companies i.e. "company2" and one for locations that belong to that company i.e. "location2...
Jordonjorey asked 16/5, 2015 at 7:49
2
Solved
I want to use select2 plugin for my project. I followed this example, but it doesn't work for me.
JSON output :
[
{"ime":"BioPlex TM"},
{"ime":"Aegis sym agrilla"},
{"ime":"Aegis sym irriga"},...
Wet asked 5/2, 2015 at 22:14
1
Solved
I want to support the MaximumInputLength decorator for my custom Select2 Data Adapter. In my custom data adapter, the Utils.Decorate() call does not do anything.
Looking at this gist, I could call...
Berkeley asked 3/6, 2015 at 21:24
2
Solved
I am trying to use the select2 ajax call with templates. I am getting the ajax in just fine but it is not using my template functions.
the ajax data is:
[
{"name":"First thing","otherData":"asdf...
Kinard asked 19/3, 2015 at 14:6
4
I'm giving following data input to select2
data = [{
"id": "all",
"text": "All",
"children": [{
"id": "item1",
"text": "item1"
}, {
"id": "item2",
"text": "item2"
}]
}];
and I'm initial...
Candlestand asked 4/5, 2015 at 16:54
3
I use remote data source for options. When I load form data from server, it only contains the values of select elements. In such situation, select2 does not know the corresponding text to show to u...
Reactor asked 12/5, 2015 at 1:2
1
Solved
I have been trying to use X-Editable http://vitalets.github.io/x-editable/ with Select2 https://select2.github.io/ for weeks now without much luck.
Originally I was trying to load in data from AJA...
Burger asked 16/5, 2015 at 0:12
2
Solved
Trying to make two chained auto populating select fields using select2 plugin
The first select contains countries names(static select) and the second shows the states of the country selected from t...
Quitclaim asked 14/5, 2015 at 18:22
1
I am getting the following error when using select2 plugin on initSelection.
Error: Uncaught Error: No select2/compat/initSelection is the error I am getting.
Hope somebody helps me in sorting ou...
Miserly asked 28/4, 2015 at 12:10
1
Solved
I am using the latest version of Select2: Select2 4.0.
I would like to allow users to enter free text. In other words if a user cannot find a option in the drop down (data returned by ajax), I wan...
Lapierre asked 3/5, 2015 at 21:22
5
Solved
I have created simple custom AngularJs directive for this awesome jquery plugin jQuery-Select2 as follows:
Directive
app.directive("select2",function($timeout,$parse){
return {
restrict: 'AC',
...
Orvieto asked 15/4, 2015 at 7:40
© 2022 - 2024 — McMap. All rights reserved.