jquery-select2 Questions

2

Solved

I've got a select2 select menu. Stripped version for example: <div class="form-group has-error"> <select name="description_id" class="select2"> <!-- &...
Drabbet asked 1/2, 2017 at 19:30

1

Solved

I need to change placeholder of a text input via Vue.js data binding. Here is my code. <select2 :options="power_options" v-model="power"> <option selected value="...
Incogitable asked 10/12, 2018 at 13:10

3

Solved

I have a simple select2 init which I want to be disabled by default without chaining a .select2("enable", false) afterwards. HTML: <input type='hidden' value="192" data-init-text='Bla bla' na...

4

Solved

I am working on an app that uses Select2 (version 3.5.1). The HTML to setup this drop down / autocomplete field looks like this: <input id="mySelect" class="form-control" type="hidden"> Th...
Ecosphere asked 27/9, 2014 at 11:57

3

Solved

I am using select2 (http://ivaynberg.github.io/select2/) for my tagging input. from the example in using select2 tagging the code is look like this. $("#e12").select2({tags:["red", "green", "blue...
Lunseth asked 7/6, 2013 at 23:56

1

Solved

I try to use the newest select2 v4.0.3 library in a web page. I used the given example on this page for tagging and tokenization. I tested it in different browsers. It works fine, but in Internet ...
Spermary asked 3/2, 2017 at 23:40

1

Solved

JSFiddle: http://jsfiddle.net/xpvt214o/776660/ When the choice box is open, if you try clicking anywhere outside on the level of the choice box, it doesn't get closed. However, if you click outsid...
Wheelwright asked 12/9, 2018 at 14:17

0

I'm using the Select2 control along with the Select2.Multi-checkboxes.JS plugin to allow multi-checkbox selection. The following demo shows that the control works properly with Select2 3.x: http:...
Menorca asked 10/9, 2018 at 18:22

1

Solved

I'm trying to use the Select2 jquery plugin to make the optgroups in my select drop down menu collapsible/expandable. I found what looks to be a good and straightforward solution (https://github....
Involucrum asked 3/9, 2018 at 23:7

3

I read always trigger "change"-event for <select>, even if the select2-option clicked is already selected and as the problem was so close to my issue I asked my question there but n...
Endoenzyme asked 24/6, 2014 at 4:57

4

Solved

Assume I have a select2 box inside a hidden div like this: <form > <div id="agent007"> <select name="slimy" id="slimy"> <option>Good</option> <option>Bad&l...
Maice asked 14/8, 2018 at 13:57

1

Solved

When error replacement in select2 is showing up above the box, I want the error replacement below the box. Here is my HTML: <form id="form" class="form_required"> <select type="tex...

7

Solved

I am following this doc http://ivaynberg.github.io/select2/ to create select box with placeholder. My problem is the placeholder doesn't work. Can you help to fix this code? Code: Also at http://j...
Delamare asked 6/2, 2014 at 23:4

1

Solved

After select2 manipulates the dropdown field the regular use of form.owner_id.data yields None. How can I extract the selected option from a select2 field. If I disable the select2 javascript, wt...
Donohoe asked 24/7, 2018 at 16:11

3

Solved

I am using select2, I have set it up so I can add a new tag if it does not exist, I am also using twitter bootstrap, If a tag does not exist I want to mark it as a new tag, to do so I prepend the...
Contractual asked 4/2, 2013 at 4:38

4

I'm using select2 to enhance an html select element. I want to bind the value of the select element to a Vue variable, however the Select2 seems to be preventing this. What's the best way to achie...
Ostracon asked 24/7, 2015 at 10:23

4

I want to add one icon to placeholder like this $("#tag_list").select2({ allowClear: true, placeholder: "<i class='icon-group'></i>    inout your tags...", tags: ...
Ontology asked 27/7, 2013 at 8:57

2

Solved

I can't find on select2 documentation a way to remove all the options in a select2 form. The old stckoverflow answers to this questions seem not to work since the new version (I'm using 4.0.3) has ...
Perfumer asked 27/6, 2017 at 8:24

4

I want to enable select 2 search in my Symfony form what i tried so far: In my form class i have this: ->add('parent', EntityType::class, [ 'class' => Category::class, 'choice_label' =&gt...
Lunsford asked 18/5, 2018 at 21:32

4

Solved

By using select2.js v4 plugin , how set the default selected value when I use a local array data for source? for example with this code var data_names = [{ id: 0, text: "Henri", }, { id: 1, t...
Watchdog asked 27/7, 2015 at 13:19

5

Solved

I am using select2 to create a div with tags like functionality when creating a new post. Stack is Angular 1.6.x It works well when I am creating a new post BUT when I add pre-selected values whe...
Rotate asked 2/4, 2018 at 4:26

2

Solved

Is it possible to extend content beyond the bounds of an iframe? In my case, I was formerly rendering a native <select> control inside of an iframe. As a native control, when it rendered, the...
Avalanche asked 26/6, 2015 at 20:41

2

I'm using Select2 now since 2 years and I really enjoy all dev made. however, version 3.5.x has his limit, so I'm moving to version 4.0, which give me headaches! For your record, I'm using Select2...
Disrepute asked 10/3, 2015 at 7:58

3

Solved

I'm using Select2 version 4.0.0. If my results contain multiple words, and the user enters one of those words, I want to display the results sorted by where the entered word is within the result. ...
Apo asked 13/8, 2015 at 14:33

2

Solved

I implemented a tagging system where you can choose from existing tags or add new tags. After a new tag has been selected it will persisted using an AJAX call. For achieving this I use the callbac...
Angeloangelology asked 8/12, 2015 at 21:58

© 2022 - 2024 — McMap. All rights reserved.