jQuery Select2 - Use tab to select an option
问题 I'd like to be able to use the arrow keys to get to the select2 option I want and then press tab to select that option and then tab to the next element as usual. I already got the down arrow to open the select2 with the following: $(document).on('keydown', '.select2', function(e) { if (e.originalEvent && e.which == 40) { e.preventDefault(); $(this).siblings('select').select2('open'); } }); And I can also use the arrows to get where I need to go. Now I'm struggling to make the tab part work. I