jquery-select2 Questions

2

Solved

I'm using Select2 for a project. The second select box gets filled depending on the selected item in the first box, as shown in the link below. However, I can't click the first item in the second s...
Fitly asked 21/2, 2016 at 19:2

4

Select boxes converted to Select2, do not automatically integrate with unobtrusive validation mechanism in ASP.NET MVC framework. For example, on a form which contains a regular select box (marked ...
Rabbinical asked 21/12, 2012 at 20:46

0

is there a better way to close select2 when you click away? I have it closing with $(document).click(function(event) { if(!$(event.target).hasClass("select2-selection__rendered") && !$...
Hemichordate asked 24/3, 2018 at 15:46

5

Solved

I am using the Select2 plugin, but the built in search functionality doesn't work when the plugin is used with a jQuery modal dialog. I have a fiddle that shows the problem at... http://jsfiddle.n...
Brunson asked 5/11, 2013 at 11:31

2

I want to add an another autocomplete field to my model.form. However, as soon as I add the autocomplete widget for the field "projektnummer" 'projektnummer': autocomplete.ModelSelect2(url='outp...

1

Solved

I have added Select2 js to provide search capabilities in my wordpress theme setting drop down options to add search -> http://nimb.ws/1QW6id I have added the following code to my admin options f...
Jecon asked 20/2, 2018 at 6:18

4

Solved

I've already checked the other threads, covering this problem, but none of this solutions work for me. I'm using jquery 1.11.2, select2-4.0.0-beta.3 and bootstrap-3.3.1 My modal looks like follow...
Caprice asked 28/2, 2015 at 12:31

2

Solved

I'm thinking in moving from Chosen to Select2 because Select2 has native methods for ajax. Ajax is critical because usualy you have to load a lot of data. I executed sucessfully the example with ...

1

Solved

Just by doing Select2 hello-world exercises I cannot load ajax data, but rather getting an error: Uncaught TypeError: c.ajax is not a function at Object.transport (select2.min.js:1) at d (sel...
Sayre asked 24/1, 2018 at 17:48

2

Solved

I am trying to implement bootstrap select2 with jqgrid form but can seem to get it right. on the colmodel of the jqgrid declaration I have: {name: 'staff', index: 'staff', width: 31, formoptions...
Lashondalashonde asked 16/10, 2013 at 5:9

1

Solved

I need to add a Button to every select2 item and prevent the default event so only the button gets triggered. I have the following code but the normal onSelect event still gets triggered: select....
Quarterback asked 3/1, 2018 at 14:49

11

Solved

I'm using fontawesome, and I want to add or remove an icon to the selected item. So I did this: http://jsbin.com/nasixuro/7/edit (Thanks to @Fares M.) JS $(document).ready(function () { functio...
Petrarch asked 13/5, 2014 at 20:1

3

Solved

I'm attempting to pass an extra parameter to an ajax call within select2: $(".auto-sug").select2({ width:'element', minimumInputLength:2, ajax: { url: "/action/get-custom.php", data: functio...
Altamira asked 30/11, 2012 at 1:49

2

Solved

I tried to implement select2 plugin using the Bulma css framework but it seems messy in frontend. I tried this using bootstrap and yes there's no problem since select2 has a bootstrap compatibility...
Eucaine asked 13/4, 2017 at 15:27

3

Solved

I have no idea how to insert fontawesome inside Select2. What should I add the CSS or JS in it? I have a view like below. click : http://s10.postimg.org/675fig9vd/Capture121212121.png Can anyone ...
Ikeikebana asked 31/1, 2014 at 2:37

4

Solved

Seems like a pretty simple idea, but I can't figure out how to filter out option tags of the original select from the select2 dropdown. Basically, this: <select id="select"> <option cla...
Beberg asked 16/3, 2013 at 1:27

8

Solved

I'm using select2 and in my site. I need to know at some point if the dropdown is open or closed. I've studied the documentation but I don't see how this can be done. For example, something like th...
Essen asked 8/4, 2014 at 18:53

2

Solved

Ok, I feel like I'm going crazy here. I'm using the select2 jquery plugin (version 4), and retrieving data via ajax. So you can type in a name, and it will return that contact information. But I al...
Semiquaver asked 22/2, 2016 at 14:55

3

I'm using select2 for tagging and I have it setup such that a user can add new tags as well. The issue that I'm dealing with is validating the user entry and adding the sanitized tag to selection. ...
Evania asked 8/1, 2015 at 15:55

3

Solved

The select2 component can be configured to accept new values, as ask in Select2 dropdown but allow new values by user? And you can see it at: http://jsfiddle.net/pHSdP/646/ the code is as below: ...
Mitch asked 2/9, 2014 at 5:34

3

Solved

I'm working on a project where im using .net web api, knockout and in this example, the jquery plugin select2. What im trying to do is to set some field values after the change of the selection. T...
Illconditioned asked 17/2, 2014 at 23:0

2

Solved

I was having trouble while using dal and tried to build a simple example. I did almost the exactly the same as Django autocomplete light: field not populated and also applied the answer of the lin...
Elenor asked 26/7, 2016 at 8:59

4

I'm having trouble using the Select2 with various groups, only the latter appears. <select name="txtConta" id="txtConta" data-placeholder="Selecione a conta"> <option value=""></...
Maxia asked 1/10, 2014 at 17:14

1

I've been trying to save some ajax calls on my production environment. For that, I have bundled and minified some of my scripts but I'm struggling with select2 and it's translation files. I've inc...
Belisle asked 22/9, 2016 at 21:22

9

I am looking for autocomplete form for MaterializeCss, any plugins for this? i has try to use select2 but that's css not looks good
Lathery asked 11/12, 2015 at 11:43

© 2022 - 2024 — McMap. All rights reserved.