Results 1 comments of js dev

$('your select element').on('select2:close', function () { if ($(form).validate()) { $('.select2-selection').one('keydown', function (e) { if (e.keyCode === 13) $(form).submit(); }); } }).on('select2:open', function () { $('.select2-selection').off('keydown'); });