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.  For example, a user enters "apple", and...
I am using Select2 JS  Version 4.0.0-rc.1  and having trouble loading suggestions with remote Ajax method.  Below are the markups and code  <select class="form-control input-sm" id="selFrame1" name="selFrame1">    <op...
I have the following code (javascript):  $('#cbxConnections').select2({     minimumInputLength: 0,     multiple: false,     allowClear: true,     placeholder:{         text:"@Diccionario.Connections",         id:" @Diccionario.Con...
I hope my question makes sense - wasn't sure on the best way to describe this.  I have a grouped Select2 select form input something like this:   Vegetables Lettuce Tomatoes Onions Fruit Apples Oranges Bananas Spreads Vegemite Nutella Peanut Butt...
When I download the 4.0.1 Release Candidate (https://github.com/select2/select2/releases/tag/4.0.1-rc.1) of Select2 and use it, I get a JavaScript error: Uncaught ReferenceError: define is not defined.  Here I read that it has to do with the AMD load...
I am trying to create a custom data adapter according to an example here: http://select2.github.io/announcements-4.0.html#query-to-data-adapter. How can I move the line that creates the select2 control outside the function with definition of DataAdap...
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,   text: "John", }, {   id: 2,   tex...
I have a form with a simple input and a select2 input like so : http://codepen.io/anon/pen/QyBxwE  Pressing enter while the first input is focused should submit the form (in this case, redirect to a 404 page).  For some reason, the multiple select2 i...
I'm using Select2 (v4) in a multiple select form and having difficulty getting the dropdown close functionality I need. I have closeOnSelect set to false, so the user can add multiple values easily. What I'm seeing on a test site is that on a...
I have the following HTML code:  <input type="text" id="condition_value_1"> <span class="click_me">Click Me</span>   I am replacing the #condition_value_1 element with a SELECT type as follow and trying to tu...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.