Answers for "select2 no search"

3

select2 disable search

$("#js-example-basic-hide-search").select2({
    minimumResultsForSearch: Infinity
});
Posted by: Guest on November-14-2020
2

select2 search disable

$("#js-example-basic-hide-search").select2({
    minimumResultsForSearch: -1
});
Posted by: Guest on December-25-2020
0

select2 search not working

Just remove tabindex="-1" from the modal

<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">Panel</h3>
  </div>
  <div class="modal-body" style="max-height: 800px">
  
  
  ############### TO ############################
  
  <div id="myModal" class="modal hide fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">Panel</h3>
  </div>
  <div class="modal-body" style="max-height: 800px">
Posted by: Guest on January-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language