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 select field on my page:  <label>     <span>Select name</span>     <select name="name">         <option value="Option1">Option 1</option>         <option value="Option2">Option...
I have the following code (javascript):  $('#cbxConnections').select2({     minimumInputLength: 0,     multiple: false,     allowClear: true,     placeholder:{         text:"@Diccionario.Connections",         id:" @Diccionario.Con...
I am using select2 with custom data adapter. All of the data provided to select2 is generated locally in web page (so no need to use ajax). As query method can generate a lot of results (about 5k) opening select box  is quite slow.   As a remedy, I w...
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...
I am using Select2 within WooCommerce in some of my own custom areas and I am targeting it with some code to add and removes certain classes and it's working fine; however the SelectWoo instances used by WooCommerce themselves are not working.  E...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.