jquery-select2 Questions

1

I'm using select2 , i have many of them in my form What i want is to control the placeholder for each of them dynamically to make the placeholder changed according to the name attribute for each ...
Be asked 16/9, 2019 at 20:56

3

Solved

I have a select2 Input text field in my page in which I am loading items dynamically on focus event of Input field. When I enter some search text let's say 'vai' then the result items are loaded ...
Rogan asked 15/1, 2015 at 10:21

4

Solved

I am trying to use the Select2 plugin to have 4 dropdown lists that depend on each other. I have struggled to find the right way to update the data that loads the options in. My goal is to load th...
Ocker asked 10/2, 2013 at 11:31

21

Solved

For my more significant selects, the search box in Select2 is wonderful. However, in one instance, I have a simple selection of 4 hard-coded choices. In this case, the search box is superfluous and...
Canter asked 5/7, 2013 at 1:49

8

Solved

I want to set the first position to select2 dropdown by default, I have tried this but It doens´t work: $('#mylist').val($('#mylist option:first-child').val()).trigger('change'); Other way that ...
Krahmer asked 9/3, 2017 at 18:57

15

Solved

I have problem making this plunkr (select2 + angulat-ui) work. http://plnkr.co/edit/NkdWUO?p=preview In local setup, I get the select2 work, but I cannot set the width as described in the docs. I...
Dentist asked 2/10, 2012 at 2:48

13

Solved

Select2 loads all items from my list successful, the issue I found when try to select a specific value when page loads. Example: :: put select2 in a specific html element, no value is selected even...
Asteriated asked 19/2, 2013 at 12:23

9

Solved

too add a placeholder in select2 i have to add an empty option tag in the code like this <select id="e2" name="rol_id" > <option><option> {foreach from=$data...
Disservice asked 18/10, 2013 at 14:41

7

Solved

I have select2 customized via css with its general classes and ids. Now, I'm trying to customize a specific class that will be provided to select2 and then apply in css to it. My issue: is NOT t...
July asked 13/11, 2015 at 12:13

11

Solved

I'm working with the awesome select2 control. I'm trying to clean and disable the select2 with the content too so I do this: $("#select2id").empty(); $("#select2id").select2("disable"); Ok, it ...
Deraign asked 30/4, 2013 at 23:31

7

I have a select2 box in bootstrap modal, I want to change the value of the select2 box but it didn't work. I tried every single solution in previous posts and results but none of them got it work....
Carbajal asked 4/8, 2016 at 16:43

1

Solved

I am trying to listen to a Select2 event in a Stimulus controller via the data-action. I have a stimulus controller, where I have included an event listener for Select2 events, but I cannot listen ...
Knudson asked 8/12, 2021 at 18:45

2

Solved

I am trying to use Select2 on a new Rails 7 app and am struggling as follows: I have pinned it into my import maps and imported it like so: pin "application", preload: true pin "@hot...
Talkington asked 8/2, 2022 at 13:36

4

Solved

I can get this to work... var options = [{id: 1, text: 'Adair, Charles'}] $('#names').select2({ data: options, }) But i cant work out how to get from here... alert(JSON.stringify(request.name...
Plebiscite asked 10/8, 2013 at 11:22

4

Solved

I'm using a select2 dropdown, and would like to set different colours on each options. Example: <select class="select2" name="fruit"> <option class="red-option">Apple</option&g...
Crural asked 12/4, 2018 at 16:25

8

I'm using select2 jquery plugin with twitter bootstrap. It's working fine for smaller number of items. But when the list is huge (more than 1500 items) it really slows down. It's slowest in IE. No...
Hosmer asked 23/2, 2013 at 13:29

6

I am having a multiple select like this: <select multiple="multiple" class="myList"> <option value="1" selected="selected">Apple</option> <option value="2" selected="selecte...
Budworth asked 4/11, 2014 at 7:56

5

i want to use select2.min.js to auto-complete the choices (ForeignKey values) , but it only work for my first form , i used django formset for duplicate forms this is my snippet <tbody cla...
Head asked 14/6, 2020 at 14:43

6

Solved

We are trying to implement Ajax Remote data loading in Select2:- $scope.configPartSelect2 = { minimumInputLength: 3, ajax: { url: "/api/Part", // beforeSend: function (xhr) { xhr.setRequestHe...
Soutor asked 30/10, 2012 at 7:55

3

I am using jQuery UI ToolTip with Select2. My code is like below. $(".volunteer").on("click", function (event) { function templateSelection(data_format) { if (!data_format.id...
Talipes asked 9/2, 2022 at 1:44

3

I have a controller called ProcessController along with its View, in this view I call a PartialView as Modal and in it I need to load data into a Jquery Select2 control. PartialView @model App.V...
Seventy asked 31/8, 2019 at 21:59

5

Solved

I am using the following HTML code to include a select2 control in my form as below. <select id="element_id" class="select2" style="width:100%"> <option value="e1" >Element 1</optio...
Caesarea asked 22/11, 2016 at 17:25

2

So I'm using the Select2 JQuery based replacement for select boxes. I've set it up (with help from an example I found) for remote data searching via ajax which works great. I've got a minimum inpu...
Brighton asked 20/5, 2014 at 16:23

7

Solved

I'm new to jquery and javascript, so maybe this is a silly question but i'm having problems setting the value obtained from a selected option in select2 to a text input. This is my code: <...
Allot asked 28/1, 2017 at 14:1

6

Solved

<select data-placeholder="Select or type" data-minlength="2" multiple = "multiple" name='arrAval' id='listAval' class="js-basic-multiple form-control" required> So here is the issue: As th...
Witty asked 5/3, 2016 at 15:46

© 2022 - 2024 — McMap. All rights reserved.