Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery select2 tab open

// on first focus (bubbles up to document), open the menu
$(document).on('focus', '.select2-selection.select2-selection--single', function (e) {
  $(this).closest(".select2-container").siblings('select:enabled').select2('open');
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #tab #open
ADD COMMENT
Topic
Name
2+4 =