All Questions
37
questions
0
votes
1
answer
31
views
The footer is adding multiple times below different select2 dropdown
I am using select 2 jquery plugin to create multiple multi select dropdowns, At some scenarios the footer is getting appended multiple times under the dropdown menu. For example if you open drodpown 1 ...
-1
votes
0
answers
16
views
Close the select2 dropdown only when clicking on a specific button [duplicate]
I am using the Select2 jQuery plugin to create a dropdown. I have multiple dropdowns on my page.
I want the dropdown to close only when licking on 'Apply', 'Cancel' or 'Reset' buttons. I don't want ...
0
votes
1
answer
45
views
select2 date custom option is not opening if clicked again
$(document).ready(function() {
///dateee picker
$("#date-range-options").select2({
placeholder: "Select",
minimumResultsForSearch: -1,
closeOnSelect: false,
allowClear: false
})...
0
votes
0
answers
822
views
ASP.Net Core try to implement Select2 multi-select dropdown with Ajax
I make an ASP.net core application. I'm using Microsoft SQL Server and I have the following tables with many to many relations.
public class Store : BaseDeletableModel<int>
{
public Store()
...
0
votes
2
answers
3k
views
Choices JS Re-Initialize is not working for dynamic Row add
I am using Choices JS Plugin in HTML Table, But when I increasing the Table row dynamically by jQuery the next Select is not working.
Initializing first time at Document ready function using -
new ...
1
vote
2
answers
656
views
select 2 jquery custom attribute country name with capital name
I'm trying to add a custom attribute to select 2 options, Even if I search with "data-name" the option should show up
<select name="countries" class="vat" id="...
0
votes
1
answer
104
views
jQuery's Select2 is dulicated
hope that you're doing well, as for my problem, I want to use a Select2 jQuery plugin's drop-down menu, I copied the code directly from another page that is working fine, but it showing me the drop-...
0
votes
0
answers
134
views
Duplicate dynamic select boxes using clone()
I have a div in my code which I need to duplicate as the user clicks on the Add button. In the div there are 2 dropdowns one which is populated dynamically from database and the other one dynamically ...
0
votes
1
answer
1k
views
jquery - How to add image to the Select2 dropdown list with data retreived from MySQL and PHP through AJAX?
I want to add an image in front of the options in the searchable dropdown list I made. The list is populated with data from MySQL database retrieved via PHP and AJAX. I am using the Select2 plugin for ...
0
votes
1
answer
676
views
How to set all options of a select as value for "All" options option?
I have an app using jquery select2 plugin for select-option filters. Is there a solution to have an option called "All", which selects all available option values and passes them for the result for ...
0
votes
2
answers
5k
views
Select2 multiple - how to set blank default value
I have a dynamic multiple choice input which uses Select2. I need to create a "blank" option which has empty value with some title so it behaves like nothing is selected but user sees that there is ...
0
votes
1
answer
65
views
Using Django, the selected option of a dropdown menu is not passed to the server
I'm using Django and jQuery.
My forms.py:
CARPET_TYPE = (
('', 'Select a carpet type'),
('NRM', 'Normal'),
('SLK', 'Silk'),
('WOL', 'Wool'),
('PER', 'Persian')
)
class ...
0
votes
1
answer
74
views
Select2 3.4.5 force optgroup to be readonly
As you can see here, the I can hover on the optgroup and I can also click on it
Is there any way to make it readonly ?
The way I am loading it is:
formSelectElement.select2({
placeholder: 'Type ...
0
votes
1
answer
1k
views
Select2 plugin: Showing selected options outside the form element
I'm working on a multi-select dropdown using the Select2 plug-in. However, I have some styling issues that I can't seem to figure out.
The Select2 plugin allows you to select multiple options from a ...
1
vote
1
answer
7k
views
Add option to select2 dynamically
I have read all possible references about how to add an option dynamically to select2, but none works. I guess those have been replicated.
The case is I want when user types in the searchbox of combo,...