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 have the following code (javascript):  $('#cbxConnections').select2({     minimumInputLength: 0,     multiple: false,     allowClear: true,     placeholder:{         text:"@Diccionario.Connections",         id:" @Diccionario.Con...
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...
I am trying to setup my pre defined select options in select2  with ajax but when I am using the ajax and clicking on the select2 it removes the html options I had there before, any idea how can I make it to leave the options as they are and not remo...
I'm trying to dynamically clear a Select2 option list, and reload it with new data. Everything I read tells me that I can set the data like I'm doing, but it only appends data, and doesn't clear it.    $("#optioner").select2();  $...
Instead using ui-select, I'm using jQuery select2 in AngularJS. I created custom directive for select2, for ng-model. I get the value from ng-model. But when I update the select2 on default, it doesn't work. I'm using select2 v4.0.3.  Dir...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.