Questions tagged as 'jquery-select2'

0
answers

Increase the size of the plugin Select2 plugin

I need the combobox plugin Select2 ( link ) that is above to have the same effect of the combo that is below according to image, ie increase the width size without covering the fields next to it, is it possible?     
asked by 20.01.2016 / 09:45
0
answers

long script in IE

A client reported that in his IE he is presenting a message that the script was too long, causing a crash. $(document).ready(function () { $('select').each(function () { $(this).select2({ allowClear: true, dro...
asked by 03.02.2015 / 14:48
0
answers

Select2 does not open when screen is smaller

I have a problem when select2 is in a form and near the end of the screen, so it does not open because it understands that there is not enough space, I would like to know how to do it. The fields that are higher up work but when it gets close...
asked by 25.01.2015 / 11:27
1
answer

Reversed search in Select2 without using Ajax

In DataTables.js the search works like this: Product Name: Meias Vermelhas The search returns the item if you type: Vermelhas Meias How to have the same efficiency in Select2 searches? Ref: link     
asked by 10.05.2018 / 14:24
1
answer

Problem to get the text attribute of a select2

I can not get the selected text attribute in select2 , I can only get the id. <div class="col-sm-3"> <input type="text" ui-select2="comboPasta()" ng-model="item.nomePasta" placeholder="Selecione"> </div> My javasc...
asked by 02.03.2017 / 16:20
1
answer

foreach always brings the first value in addition to the selected ones

I have a multiple bootstrap select from which I'm using Select2 (Multiple select boxes) . When you select more than one value, the first value of the select always appears without selecting it. See the code: $multiplo = ($tipo == "Escolas")?(...
asked by 20.01.2017 / 21:28
1
answer

Default values in a select2 [closed]

Well, I need to know how to call a select2 with multiple default values. That is, how to leave pre-existing options in select2. Example: I have a list of the database 'name', 'name2', 'name3'. I want when you load the page, select by defau...
asked by 26.01.2017 / 22:50