Questions tagged as 'jquery-select2'

2
answers

How to Reset Select2 and Multiselect Fields of the Form

I have a registration form where I reset the fields when entering a record with the following: document.getElementById(id).reset(); //Aqui passo o id do formulário The problem is that I now have a select2 multiselect that are not being...
asked by 06.10.2016 / 22:47
1
answer

Select2 + Jquery - Problem with Autocomplete

I was able to make Plugin Select2 work, but autocomplete does not work. $(function () { $("#disciplina").select2({ placeholder: "Disciplina", minimumInputLength: 0, ajax:{ url: "busca.asp",...
asked by 23.07.2018 / 22:18
1
answer

Select2 with ajax not returning data

I'm 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 the select. HTML <select name='produtos[]' multiple="multiple" id="selP...
asked by 05.04.2018 / 11:17
2
answers

Change the contents of a label of an optgroup when selecting an option in another select

I would like, by clicking, for example in the "10 People" option ... Hechangedthelabelofseveralotherselects,forexample,thisone:"Special Fillings: R $ 10". I would like it, for example, to become "Special Fillings: $ 20". When I chose "30 Peopl...
asked by 10.02.2017 / 17:19
1
answer

Pick up the selected item from the Select2 plugin and do a Submit

How to get the selected item from the DropDownList Select2 plugin ( link ), and send it to a Controller through a button submit? SCREEN CONTROLERpublicActionResultIndex(ContratoViewModelcontratoViewModel){intid=contratoViewModel.Id;}SUBM...
asked by 19.01.2016 / 01:00
1
answer

Component select2 with AngularJS

Good afternoon Does anyone use the select2 component ( link ) to create dropdown components? I'm going through the following problem, I have two components in a javascript that are placed on the screen as the user adds new lines. And in th...
asked by 23.06.2015 / 19:42
1
answer

Create search tags for Select2

I'm using the Select2 library. I will use it to search for help pages, however I need it to search for tags and not just for the text in Option ex: Today: <optgroup label="Mountain Time Zone"> <option value="AZ">Arizona</op...
asked by 20.07.2015 / 17:23
0
answers

Populating selects - Misalignment when returning values in combobox with chosen.jquery filter

I'm using the chosen component to do the combobox filter, but when it returns the JSON values to populate the combobox, it is misaligning the "duplicating" field. <body> <div id="conteudo"> <p><span cl...
asked by 27.09.2018 / 14:48
0
answers

Popular Selec2 with Ajax + ASP 3

I'm already trying to populate a select ajax options, among the various options I found the plugin selec2 and I'm trying like this: $(function () { $(".disciplina").select2({ language: "pt-BR", placeholder: "Disciplina",...
asked by 22.07.2018 / 20:33
0
answers

Select 2 on bootstrap 3

There is some way to use select2 in Bootstrap 3.3, terial some example to try to implement, I'm building my TCC on the adminLTE template and needed something like it in some queries, thank you! I was able to implement this way: <div clas...
asked by 22.05.2018 / 19:40