Questions tagged as 'select2'

2
answers

How to edit nested Selects jquery?

Hi, I have this problem with two nested select2s (one depends on the other), the first thing is that I filled a datatable.net with the data and I passed them through oneclick to be able to edit them: EditarTrabajador = function ( CodOficina, D...
asked by 02.08.2018 / 16:56
0
answers

DropdownList multiple in relation many to many

I am implementing a selector for multiple options, the problem is that when passing the model when editing the user the selected values do not come out. The problem is that the database has the relation between subjects and users and is not a...
asked by 29.07.2018 / 12:44
1
answer

how do I keep a selected option after sending a form with plugin select2

I have the following code, I am trying to build an excel-like filter with the select2. well the filter works and it makes the consultations, but I would like to leave or remember the selected options, since if I make a query and then another ......
asked by 28.07.2018 / 02:34
1
answer

Responsive adjustment for input-group with Select2 and other form-control or input-group-btn

I am trying to finish the design, for a file loading system: the System has an initial element Select2 ; then it is concatenated with a search button (to search for the file); then we have a text entry where I show the name of the file (th...
asked by 26.05.2018 / 16:31
0
answers

optionCaption disable in ko.js?

How can I make my optionsCaption from a drop-down list disabled? my html is this: <div class=" col-sm-3 col-md-3 col-lg-3 col-xs-3"> <label for="comment">Tipo de analisis:</label> <div class="in...
asked by 21.05.2018 / 15:36
0
answers

Select2 input out of container

I'm using the CSS 3.5.4 with ASP.NET MVC , and it does not mesh with input , and it looks out. HTML Code: <div class="input-group" style="width:100%"> <span class="input-group-addon"><i class="fa fa-s...
asked by 27.03.2018 / 07:32
0
answers

Assign Select2 values

I have a Select2 that works well to search, the issue is that, once I select the value I was looking for, I need to fill the inputs (not dynamically created) with the information obtained. So far I have not found anything that makes reference to...
asked by 24.03.2018 / 08:45
1
answer

Error with select2 in angular 5

Good morning, I am trying to give these functions to a screen that I created select 2 examples ng2-select2 (it's the first select, the most basic) The problem is that apparently it is not supported for angle 5, only for angle 2 My error...
asked by 01.02.2018 / 00:52
1
answer

How to manipulate a selected element in select2

I have this code and I would like to know how to save the selected data in a variable to manipulate them as json. I have already managed to create the values through json data. function customMatcher(params, data) { //show childs...
asked by 11.12.2017 / 22:10
1
answer

fill input multiselect select2

I am looking everywhere and I can not find how I can fill an input of a multiple select using select2. the code I'm using is this: if (ui.item.tallas >= 1) { $('#'+Talla).val(ui.item.talla.split(',')).trigger('change'); $('#'+Talla).sele...
asked by 20.11.2017 / 22:23