jquery-select2 Questions
2
Solved
I cannot get the select2 dropdown to fit parent container (collapse) when initialized hidden. I understand this is not a bug, because select2 was not able to calculate the parent width. But I could...
Faucal asked 5/7, 2016 at 5:41
3
Solved
I use Form Component and have a ChoiceType field on the form which is rendered to a select field.
On the client-side I use select2 plugin which initializes a select with tags: true allowing the add...
Wolford asked 17/9, 2015 at 10:24
5
Solved
I am trying to figure out the correct way to read the current selected text (not value) in select2 dropdown item. I don't see this listed on the documentation.
I can see there is a new DOM element...
Keever asked 27/7, 2015 at 1:56
11
Chosen and Select2 are the two more popular libraries for extending selectboxes.
Both seem to be actively maintained, Chosen is older and supports both jQuery and Prototype.
Select2 is jQuery onl...
Bootlace asked 27/11, 2012 at 0:28
2
Solved
I have next html structure
<select class="change_item_dropdown_ajax form-control" id="item_id" name="item_id" onchange="updateData(this, this.value, 16)" >
<optgroup label="System Data"&g...
Truant asked 12/10, 2015 at 12:7
1
Solved
I have a problem with Select2 V 4.02
Here is my code
<select id="MySelect" class="form-control" runat="server" ClientIDMode="static">
<option></option>
<option value="1">...
Economically asked 7/4, 2016 at 4:57
2
Solved
I am using Select2 to manage large lists of data. Users have expressed a desire to be able to paste a list to the Select2 field in order to select various items at once instead of manually entering...
Tress asked 19/6, 2013 at 17:6
2
Solved
I have a form for Invoice where I need to add items as required. On clicking on Add button on respective row the row has been appended to previous row. But Select2 not working normally after that.
...
Ostensory asked 23/3, 2016 at 12:25
2
Solved
I have a select2 input box for multiselet option in which, user can select as many options as he wants, if the selected options are occupying more space than available width then I wanted to increa...
Stenographer asked 17/4, 2016 at 19:30
2
i'm using the Select2 with AJAX (the code below):
$(".select2-ajax").select2({
placeholder: "Search user",
minimumInputLength: 1,
ajax: {
url: $('#url-search-client').val(),
dataType: 'json',...
Jarlathus asked 14/1, 2013 at 2:35
1
Solved
If I understand correctly, the correct use of matcher before v4.0.0 was:
$('#myselect').select2({
...
matcher: function(term, text) {
// return true if matches, false if not
}
})
With 4.0.2 ...
Vagrom asked 13/4, 2016 at 7:29
1
Solved
I hope my question makes sense - wasn't sure on the best way to describe this. I have a grouped Select2 select form input something like this:
Vegetables
Lettuce
Tomatoes
Onions
Fruit
Apples
Oran...
Joey asked 13/3, 2016 at 4:50
1
Solved
I have a relatively simple Laravel app, that features an HTML form which contains a tag select element. The select element gets enhanced via select2 library. The tags are fetched via an XMLHttpRequ...
Pleasant asked 15/3, 2016 at 10:43
4
Solved
I use Select2 in my app to allow for searching a dropdown with about 1200 options.
I am currently making use of the default implementation of Select2's matcher, which works well as long as keywor...
Children asked 27/7, 2014 at 11:21
0
I am using select2 plugin ver 3.5. It is working fine on php file. I am able to select value and able to save them in database.
Scenario
User save the data and after some time he/she wants to upd...
Firth asked 1/3, 2016 at 17:49
1
Solved
I know in previous versions of select2, stripDiacritics was exported so it was accessible outside of the default matcher. In the current version, 4.0.1 it seems impossible to write a custom matcher...
Sanctuary asked 22/2, 2016 at 15:25
2
Solved
My UI has some dropdowns created from Bootstrap, which I am using to contain some form elements. I am preventing the dropdown from closing with the solution I found here, which is almost perfect:
A...
Flue asked 4/2, 2016 at 16:13
1
Solved
How to add FontAwesome before the placeholder text on Select2.
This is my Select2 option code:
var placeholder = "<i class='fa fa-search'></i> " + "Select a places";
$(".select2").sel...
Singlehanded asked 15/2, 2016 at 9:10
1
Solved
I am using jquery-select2-4 to search an external database and present the user with search results that he can choose from.
I have a working version running on this jsfiddle.
But if, for example...
Lineage asked 31/1, 2016 at 10:11
1
Solved
I'm using select2 4.0.1, and I need to change the font for some words. More specifically, I need to show codes AK and HI in bolder/different font, something like this:
<select id="select2" styl...
Bankroll asked 8/2, 2016 at 21:0
2
Solved
I am testing select2 plugin in my local machine.
But for some reason. it is not collecting the data from database.
I tried multiple times but not able to find the issue.
Below are the code .
...
Assured asked 5/2, 2016 at 4:28
1
Solved
I have a form with a simple input and a select2 input like so : http://codepen.io/anon/pen/QyBxwE
Pressing enter while the first input is focused should submit the form (in this case, redirect to ...
Embryectomy asked 2/2, 2016 at 16:55
1
I have referred to this docs provided by select2 jQuery plugin.
http://ivaynberg.github.io/select2/
But when I use this code to limit the number of options a user can select at a time:
$(documen...
Setiform asked 5/11, 2013 at 13:21
1
Solved
Is there any way to sort my list generated by select2 by name? I have some code :
var dataUser = [{
"id": "5",
"text": "BTest"
}, {
"id": "2",
"text": "ATest"
}, {
"id": "8",
"text": "CTest"...
Dodson asked 14/1, 2016 at 11:18
2
Solved
My application uses select2 to show list of names which is retrieved through Ajax call.
It uses select2 ajax functionalities.
But the problem is that select2 fetches items whenever i type on the s...
Enterprise asked 11/6, 2013 at 6:27
© 2022 - 2024 — McMap. All rights reserved.