Questions tagged as 'jquery-select2'

1
answer

How to customize select2 messages?

I want to remove Select2 messages: Searching; No matches found; Follow the code below: Html Page <input id="ajaxSecretaria" type="hidden" style="width:300px" /> Script: $(function () { $('#ajaxSecretaria').select2(...
asked by 27.07.2018 / 17:36
0
answers

Dropdown html treatment for many options

I have a dropdown that is fed into PHP by querying an Oracle database. It is working normally, however the amount it returns is 15000 records and each record is an option in the dropdown. This slows down and becomes unusable as well. Simplifi...
asked by 27.06.2018 / 17:45
0
answers

Value in Select2 multi select

Good afternoon, I'm having difficulty returning the values of N items selected with select2, it returns only the first. I'm using ASP.NET. <asp:DropDownList ID="ddlMeses" runat="server" class="js-example-basic-multiple...
asked by 07.03.2017 / 15:53
0
answers

How to dynamically initialize a select2 in angularjs

Hello everyone, I'm using the select2 plugin in my project. I need to create multiple selects2 dynamically, by angular. I have a vector of objects (with id, name) and I need from an event, in a function to generate a select to of each object, be...
asked by 25.10.2016 / 22:34
0
answers

Select2 does not select

Using the select2 plugin via json I can not select any results. When you select it it does not display the result. Am I doing something wrong? $(".PessoaTipo").select2({ language: "pt-BR", placeholder: "Pessoa T...
asked by 29.02.2016 / 02:39
0
answers

Select2 displays value instead of text

I have some fields that use Select2 to do a basic CRUD, but querying some fields from another base. The question is, when I click refresh, I put all the values in the table (dataTables) in an array, and then when I go to Select2, it does not dis...
asked by 11.11.2015 / 14:18
0
answers

Save select2 tags via post to php

Hello, I'd like to know how I can send POST with tags selected in select2 (version 4). My code works fine, but I can not send the result of the selected tags to the server php , so none of them is saved. The data...
asked by 06.09.2015 / 13:45
0
answers

Select2.js with jquery.validate?

How can I use Jquery.validate to validate select field with the select2 plugin?     
asked by 09.07.2015 / 19:29
1
answer

How to leave the first option disabled and selected?

How can I start a selectbox of type select2 with the first option selected disabled? HTML: <div class="form-group"> <select name="tipoOperacao" id="tipoOperacao" class="selectTipo2" style="min-width : 100%"> <option...
asked by 23.04.2015 / 13:02
1
answer

Select2 does not work on my pc but works on jsfidle

This code is in jsfidle, that is, it shows the stylized select and select it with an input search. <html> <head> <title>TESTE</title> <script src="https://ajax.googlea...
asked by 06.02.2018 / 02:00