I'm trying to programmatically clear a drop down using the fantastic Select2 library. The drop down is dynamically filled with a remote ajax call using the Select2 query option.  HTML:  <input id="remote" type="hidden" data-p...
Ok, I'm sure there's something simple set wrong here but I'm not 100% what it is.  So I am trying to use Select2 AJAX method as a way of users to search a database and select a result.  The call itself is coming back with results, however...
Does somebody have an easy to use example of a country drop-down, with country flags, for Select2? I am about to implement one based on this suggestion, but I would prefer to avoid reinventing the wheel....
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'm using the Select2 plugin from http://ivaynberg.github.io/select2/select2-latest.html what works fine but i'm having a problem to get the values from the options attributes.  I've got a select menu like this:  <select name="invo...
I want to put select2 function in my code but don't know where to put that .select2() function i have this .append($(<?php echo json_encode($property_address1); ?>))  my model `     function property_address1()    {      $query = $this->...
I've tried to capture select2:clearing event  $("#my-select").on("select2:clearing", function (e) {     console.log('cleared'); });   (jsfiddle)  but it is not fired. I've also tried other versions (like select2:remove...
I am using a select 2 dropdown and then showing some long sentences in its content. I want to add line breaks to the sentence at the right place but the drop down is auto adjusting.   For example the content of the dropdown  right now looks like this...
I am trying to get select2 library working with symfony2 script.   I am trying to implement basic example provided https://select2.github.io/examples.html page.  Thus I added to my page header:  <!-- SELECT 2-->                             <...
I have some multiselect and i use jquery select2.I want to disable one option in other multiselect when this option is selected in one multiselect. i write this code,but it does work.  $("select.multiselect").on("change", function(e)...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.