Questions tagged as 'jquery-select2'

0
answers

Select2 with incorrect stylization

I'm using a select2, but his style is coming in a way that was not expected. This way: HowdoImakeitfitandalignwiththeinput-group?HTMLcode:<divclass="form-row"> <label for="cidade">Cidade</label> <div class="input...
asked by 15.03.2018 / 17:52
0
answers

Select2 - Create new option

I'm using the "createTag" option of the Select2 plugin to allow the user to type in the search and also allow to include what was typed as a selected option. But it only works when options already exist in select. If it is empty (returnin...
asked by 19.02.2018 / 15:33
1
answer

select2 database

I have a select2 that is populated from the database everything works, receives data from the bank, and so on. but if I want to edit it does not bring the option saved on the screen only on the front if it is debugged it is already in the normal...
asked by 15.02.2018 / 13:46
0
answers

Error when using Select2 with DataTables / Bootstrap

I was normally using Select2 with Bootstrap, without any errors on the console. The Head looked like this: WhenIputDataTables,Istartedtogetthiserror: Andhowistheheadwhenitgavethiserror: IdidnotevenuseDataTables,itonlyincludesthelinksinthehead.W...
asked by 09.02.2018 / 19:12
2
answers

Update city combo with jQuery when editing

I have a bug in updating the select cities, in the create works correctly, I select the state and the cities are updated. In the edit I can not get the cities updated according to the selected state. I've tried several alternatives but I could n...
asked by 17.04.2017 / 19:13
2
answers

Create a filter with multiple categories using a select

:: EDIT :: Currently, the official code looks like this, but the Almer code still does not work: Javascript <script> $(document).ready(function() { var arraySelects = ['modelo', 'massa']; $("#tamanho").change(function() { f...
asked by 15.02.2017 / 17:42
1
answer

Class selectpicker Bootstrap, does not recognize option insertion via jquery (.html ())

I'm using Bootstrap framework, and the Selectpicker class to get the city data as state. The script works fine, it returns data, but instead of entering <option> Cidade X </option> it only inserts Cidade X . I know the p...
asked by 22.02.2017 / 23:01
0
answers

Select2 options appear when selecting a

I am using Select2 to load data remotely and it is bringing the results normally, however when selecting one of the options returned all exist and I could not identify why, it follows the code: Javascript $('.js-data-example-ajax').select...
asked by 02.09.2016 / 14:22
0
answers

Define array with "ComboBox" data select2

I have the following scenario: The user chooses a value in the comboBox select2. Click on "SAVE" and this combobox Select2 should be saved in an array with defined events. After this it would return to point 1, not changing the data...
asked by 14.08.2016 / 16:07
0
answers

Query selector / 3a

I'm doing js of% com_com% complexes that were not structured by me. To facilitate use Firebux or htmls to copy the selector ready. They return me this selector: #dadosCadastraisa dadosCadastraisPessoaTablea 0a j1_data > tr >...
asked by 10.03.2016 / 15:08