Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
44 views

How do i allow clear items only on specific items on Select 2 multi select

Lets say I have item1,item2,item3 pre selected, how do i allow the user to delete only item3 and hide the X delete button from the others. Thanks in advance
EL MAHDI Bouzkoura's user avatar
0 votes
0 answers
27 views

Select2 Tooltip Not Appearing on Hover - Using jQuery and Event Delegation

I am using Select2 to enhance a element in my web application. I want to display tooltips when users hover over the options in the Select2 dropdown. However, the tooltips are not appearing as ...
ankur jadiya's user avatar
0 votes
1 answer
43 views

Problem django-autocomplete-light! new version chrome

I have a django application with python 3.7 and Django 2.2.10, which uses django admin, with the materialize css subscript for the templates. From the latest Chrome updates, the behavior of forms in ...
Dev Orea's user avatar
0 votes
0 answers
21 views

Django update form sending additional field using AJAX

I have Django ModelForm contains Select2 field. I'm using jquery to send AJAX request on backend depends on select2 field choosen and return updated form with additional fields replacing the previous ...
Antony_K's user avatar
  • 132
0 votes
1 answer
33 views

Form Repeater destroy Select2 dropdown UI

I'm trying to reinitialize Select2 for dynamically added repeater items in my form. The Select2 plugin works fine on page load, but when I add a new repeater item, the Select2 dropdown UI isn't ...
Jasmirulnaim's user avatar
0 votes
0 answers
14 views

Flask application wtforms activate select2

I'm trying to activate select2 on my Flask app on wtforms form. I have and nothing happened, selectfield still not searchable. I tried to go step with step by documentation and nothing happened... ...
מתן חזון's user avatar
0 votes
0 answers
30 views

jQuery select2 inside a responsive table

I am using select2 inside a responsive table and it's adding unnecessary horizontal scrollbar to the page. If the select element is visible on page load, then the scroll bar doesn’t appear. However, ...
Dev Loper's user avatar
-4 votes
0 answers
32 views

select2.min.js outdated version?

my penetration testing team identified that using this select2.min.js is vulnerable to the application and asking to replace with the updated one. How to do this, currently I'm referring this js file ...
Santosh Kumar's user avatar
0 votes
1 answer
98 views

Multiple select using select2 in Livewire 3

I want to create multiple selects using the select2 plugin in the livewire component, but the first time I do select "onchange", my select2 disappears into a regular select option. I've used ...
Xerror's user avatar
  • 29
0 votes
1 answer
37 views

Format of Select2 Option HTML drop down

I am seeing something I can't explain. I am using Select2 for a searchable drop down field. I am trying to configure the options with a different string for the value as opposed to the text. I ...
Scott Sarnikowski's user avatar
1 vote
1 answer
69 views

Select2 throws too many events when clearing the selection

I am using Select2 for a multi select. This select is used to filter a list. Selecting one item rebuilds the list with that filter(s). Removing one item, again rebuild the list without that specific ...
Guillaume Bois's user avatar
0 votes
0 answers
38 views

How do I refresh the result list without closing the select2?

when the result is not found, the text "result not found" appears and the existing data is hidden.when I delete it with backspace, the old data comes back before the combobox closes.when I ...
Mert Buyukeryılmaz's user avatar
0 votes
0 answers
31 views

Select2 Ajax Response is not binding to HTML properly

I am trying to implement data dropdown using select2. <input id="myInput" /> My JQuery Code $('#myInput').select2({ minimumInputLength: 3, dataType: "...
Gireesh Doddipalli's user avatar
0 votes
1 answer
31 views

How to create a dynamic chain select with strings using Select2

I am creating a DnD style calculator. There are class trees that are 3 classes deep. How would I be able to force Select 2 to only show level 1, level 2 and level 3 in their respective selects and ...
ConnectedToast's user avatar
0 votes
0 answers
55 views

Select2 ajax based results filtering based on regex on client and server side

I have implemented select2 in codeigniter for ajax based results and its working perfectly. But the challenge I am encountering is that the data in database is not sanitized e.g E.C.G Machine ECG ...
Muhammad Asif Raza's user avatar
0 votes
1 answer
22 views

Dynamically-created Select2 options won't save to database (Wordpress + BuddyPress)

I’m using BP XProfile Custom Field Types plugin to add a “Tags” field (select2-based multiselect) to the BuddyPress user profile page. After the edit profile page loads, I’m dynamically adding new ...
EvanLTD's user avatar
0 votes
0 answers
26 views

Select2 multiple when I press button remove select item my modal is closed ,but my modal shouldn't close

This is my code tgoMeanItem id is multiple select2 <div class="col-lg-12 mt-2"> <label for="date-field" class="form-label"> <strong class="...
Timur's user avatar
  • 107
0 votes
1 answer
44 views

JQuery Select2 dropdown not able to set the text in MVC

I am using the select2 jquery plugin. I was unable to set/assign the text to the select control. I used select2 with trigger function for setting the value. Firstly the control which I have taken is ...
Srikanth Reddy's user avatar
0 votes
0 answers
40 views

Disable auto focus on select2 drop-down in modal?

I have added multiple Select2 dropdowns in my modal and initialized these select dropdowns when the modal opens. There was one problem: when we open the Select2 dropdown, its positioning was not ...
Sachin Singh's user avatar
1 vote
0 answers
41 views

Select2 unslected options

I am using select2 with pagination to load more data from db when user scroll the drop down, the issue i am facing is when i select all the records and then i unselect some record then some of them ...
Almas  Asghar's user avatar
0 votes
0 answers
33 views

Wordpress Select2 Ajax query call data from DB

I'm a beginner coding with JQuery Select2 and Ajax. I'm trying to load dataset from DB into JQuery Select2 dropdown with search option. This is the function for DB query and enqueue scripts in my ...
user23190550's user avatar
0 votes
1 answer
41 views

Cannot make preselect value in select2 dropdown

I have select 2 dropdown in my project Here is how it's added on view (Razor) <div class="form-group"> <label class="required-label">Tier</label> ...
Eugene Sukh's user avatar
  • 2,647
0 votes
0 answers
25 views

Select2 - SearchBox hides all

I've a Select2 element that populates after a jquery call. I use it in a modal window. It has a search box, but the search box hides everything, also the placeholder. I've two problems here ...
poisons's user avatar
  • 91
1 vote
1 answer
38 views

How to pass the selected value of select2 element as parameter in htmx?

I want to do GET request with query parameter. However, the query parameter need to be taken from select2 elements. How do I pass the selected value of select2 to htmx? Below is the simplified ...
nama asliku's user avatar
0 votes
1 answer
45 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 ...
sd_30's user avatar
  • 658
0 votes
1 answer
50 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 })...
sd_30's user avatar
  • 658
0 votes
0 answers
38 views

Can somebody help me out for the following multiple drop-down binding problem?

I want to bind the second drop-down based on first drop-down's selected option. Also when add second dropdown first selected system should be disabled. Html for drop-down is as below: <div ...
Janavi Nagar's user avatar
-1 votes
2 answers
115 views

Select2 not working on localhost (html-PHP)

I am trying to use select2, but for some reason it does not work. The code below is fairly simple: it pulls data from a Microsoft SQL database, and creates a dropdown list. All of this is running on a ...
MatteoC's user avatar
  • 21
0 votes
0 answers
28 views

How to extend only MultipleSelection adapter in select2?

In my project I'm using select2 for single selection and multiple selection dropdowns. I would like to extend only the MultipleSelection adapter for select2. Inside my js file i have: selectElement....
Marcin's user avatar
  • 37
0 votes
0 answers
21 views

mousedown event cannot be triggered in chrome service_worker context

I am developing a simple chrome plugin for autofilling some fields in webpage. manifest.json { "manifest_version": 2, "name": "autofill", "version": ...
Mercury's user avatar
0 votes
1 answer
48 views

select2 troubles with positioning in lightbox modal [closed]

Using Select2 4.1, jQuery 3.7 When I show the select2 in a modal/lightbox, it does not position the dropdown correctly. When the select is clicked, it should show the dropdown directly above or below ...
developer981's user avatar
0 votes
0 answers
39 views

drop-down( programmatically selecting a option in drop-down menu

so I was trying to click a dropdown option of a site there is the code : so I was trying to click a dropdown option of a site there is the code : <ul class="select2-results" role="...
J Mahendran's user avatar
0 votes
1 answer
67 views

Select2 disapears after re-render of Livewire3 Component

I have the following Problem. When my Livewire3 component renders for the first time my chosen dropdown will be available as an select2. But as soon as I change something in the Livewire Component the ...
pascal-prfst's user avatar
0 votes
1 answer
37 views

Populate 2nd Select2 from Selections on 1st Select2 with AJAX and OptGroup

I have my first select2 that I pull data into from remote ajax search with multiple options allowed: $("#EmailSentToGroup").select2({ ajax: { url: "/trip-search", ...
Dennis's user avatar
  • 728
0 votes
0 answers
34 views

Django: select2 dropdown links to worng model

I would like to have two searchable dropdowns which are linked to two different modals (Dog & Service). The first dropdown for the products (services modal) works fine (expect, that i dont have a ...
LeXXan's user avatar
  • 15
0 votes
0 answers
16 views

Unable to save the comma separated values in jquery select 2 plugin

Unable to save and fetch the comma separated options into and from the DB(SQL). For example if a user select an option from the drop-down which contains comma or period operator(Ex:Vig,kumar mv) it ...
Vignesh Vicks's user avatar
0 votes
0 answers
15 views

How can I configure select2 for the following nested array

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Select2 Example</title> <link href="https://cdnjs....
Shawn Michael's user avatar
0 votes
1 answer
67 views

how to use select2 in yii2 advanced,

When I use select2 in a yii2 form, an error like this always shows: Invalid Configuration – yii\base\InvalidConfigException You must install 'yiisoft/yii2-bootstrap' extension for Bootstrap 3.x ...
Daffa Alif's user avatar
1 vote
1 answer
59 views

Solution for Unable to locate element based on text option of select on Selenium

I'm struggling to create auto click using PHP Selenium for select2 dropdown based on text name, instead of value option because the value is random. HTML <div class="input-group-prepend"&...
fitra68's user avatar
  • 25
-1 votes
1 answer
42 views

Dynamically added Select 2, Jquery Validations doesn't work [duplicate]

I'm developing a form for users to add multiple items to their cart and need to validate that none of the fields are left empty. I'm utilizing the Select2 plugin and Jquery Validator and jQuery for ...
Rahul Roy's user avatar
0 votes
1 answer
96 views

Select2 cause full page refresh instead partial postback

I'm using Select2 on a DropDownList and when I select a value that make a full page refresh. That's not happening selecting directly without Select2, making a partial postback. The DropDownList have ...
Riccardo's user avatar
0 votes
0 answers
39 views

dependent dropdown country and sity error in vue 3 pinia

I have code to create a country and city-dependent dropdown using Vue 3 pinia store, but every time I click and select data country then the data city will always be reloaded continuously and it can't ...
muhammad sumarno's user avatar
1 vote
1 answer
111 views

How to Troubleshoot Select2 Dark Theme Issues on Bootstrap 5

select2 problem i am having a problem on select2 when the switch to dark mode on bootstrap 5 select2 input does not change to dark mode I use Mazer templates i want when switch to dark mode select2 ...
Nurul Mustofa's user avatar
1 vote
0 answers
27 views

Using select2.full in typescript from npm

How can I import the select2.full in typecript? I installed the package with npm. But when importing I only get the parameters from select2.min. Is there a way I can still use select2.full?
Rolando's user avatar
  • 67
0 votes
1 answer
75 views

Problem when using select2 in a dynamic form

I'm using extensions dynamicform and select2 together in one form.: wbraganca\dynamicform\DynamicFormWidget kartik\select2\Select2 It works fine at first, but when adding another field, it just ...
gugoan's user avatar
  • 780
0 votes
0 answers
59 views

Select2 usage issue

my code miku = [ { id: 1, text: "Blue" }, { id: 12, text: "David" }, { id: 3, text: "Judy" }, { id: 4, text: "Kate" }, { ...
user24886965's user avatar
0 votes
0 answers
19 views

Select 2 , When no result Found Show a Button and open modal

I am trying to use Select2. When there is no searc result it is showing a Add button at below. Image 1 Clicking on the add button opening the pop-up. So far it is good. But the select2 search box is ...
Anupam Halder's user avatar
0 votes
1 answer
32 views

show/hide select2 with jQuery

I found a problem to display select2 options to load categories or products and I tested with every method and it didn't work. Even the options in the stackoverflow. <!DOCTYPE html> <html ...
iman farhadi's user avatar
0 votes
0 answers
146 views

Select2 in adminlte 3.2 not honoring input group class

I'm trying to use the select2 with an input group in AdminLTE v3.2.0, but the button is moved to the next line after the select2 control. Anyone has experienced this? I noticed that the issue doesnt ...
Smith's user avatar
  • 5,891
0 votes
0 answers
88 views

Select2 dropdown doesn't open properly on click - Nested select inside div

I have been facing this problem for some days now and I will like to know how to be able to set the select2 properly in order to get it working. Firstly, I am generating my HTML markup in a separate ...
Oris Sin's user avatar
  • 1,141

1
2 3 4 5
113