Most voted "jquery-select2" questions
Select2 is a jQuery-based substitute for select boxes. Supports search, remote data and infinite scroll of results.
Learn more…66 questions
Sort by count of
-
0
votes1
answer368
viewsSelect2 with ajax not returning data
I am trying to make an ajax query to an api to dynamically create a Select2. The api is returning data normally, but only the "No Results found" message appears in select. HTML <select…
-
0
votes0
answers836
viewsSelect 2 in bootstrap 3
There is some way to use Select2 in Bootstrap 3.3, have some example for me try to implement, I am building my TCC on top of the adminLTE template and needed something like it in some queries, I…
-
0
votes1
answer393
viewsSelect2 + Jquery - Autocomplete Problem
I managed to make the Select2 Plugin work, but the autocomplete does not work. $(function () { $("#disciplina").select2({ placeholder: "Disciplina", minimumInputLength: 0, ajax:{ url: "busca.asp",…
-
0
votes0
answers31
viewsSelect does not replicate for all items
I need that when performing the selection of a city through a select, another select provides only the data relevant to the action. For example, there is an sql table, which contains some products,…
-
0
votes2
answers72
viewsExecute request when changing value in a select
I am unable to execute the function when changing the value of select, follow the code below. index php. <div class="input-group m-2"> <!-- Combo Estados !--> <div…
-
0
votes1
answer78
viewsinput.Select2 does not let you select the record
In the <select> the records coming from the database are listed, but when clicking on the record, it is not selected. function searchClasseDisciplina() { const input =…
-
0
votes2
answers94
viewsjQuery selecting the element itself
Well I’m new in jQuery and I’m having a problem, as I do to select the element itself and not what is inside it, follows code: $('#add_phone').bind('click', function(){ var html = ''; html +=…
-
0
votes2
answers141
viewsOnfocus function in Select2 input
I have a form where each field has a save action, is a "form". For this, each time I select a field, a save and cancel button appears to it. Meanwhile, with a field select2, these buttons do not…
-
0
votes2
answers138
viewsI’m not being able to capture the various items selected in Lect2, how to do it?
I’m not being able to capture the various items selected in Lect2, how to do it? My goal will be to capture these items and send them to a Textbox, which I am using ? A list, see below:…
-
0
votes0
answers29
viewsLaravel Dusk and Select2
I am working with Laravel 8 and for the screen tests I am using the Dusk (https://laravel.com/docs/8.x/dusk). On one of the screens I have a Select2 with the property "tags" enabled…
-
-1
votes1
answer121
viewsSearch reversed in Select2 without using Ajax
In Datatables.js the search works this way: Product Name: Meias Vermelhas The search returns the item if you type: Vermelhas Meias How to have the same search efficiency as Select2? Ref:…
jquery-select2asked 6 years, 6 months ago David Dias 995 -
-1
votes1
answer636
viewsProblem to get the text attribute of a Select2
I’m not getting the text attribute selected in select2, I can only get the id. <div class="col-sm-3"> <input type="text" ui-select2="comboPasta()" ng-model="item.nomePasta"…
-
-1
votes1
answer410
viewsChange select value with Select2 Jquery in Blur event
I’m using the Select2 JQuery to present the selects of a system I’m developing. I have a field that type the ZIP code and select must have its value changed and presented to the user. My script de…
-
-1
votes1
answer104
viewsHow to get the current value of a select in a Row using the JS or Jquery click event
Inside the div 'div-documents' I add Rows dynamically to user documents (CPF, CNPJ, etc.). For the select. sel-document-type I have one two events: Click (for me to store the value of the select…
-
-3
votes1
answer451
viewsDefault values in a Select2
Guys, I need to know how to call a Lect2 with multiple default values. That is, how to leave pre-existing options in Lect2. Example: I have a list of the database'name','Nome2','name3'. I want when…
-
-3
votes0
answers27
viewsSELECT2 is not returning pre-selected item value
When changing a Select2 option, it is returning all the data correctly, but when I go back to the previous option (which was already selected), it is not searching the values correctly. Exemplifying…