$('#ctl13_txtSearch').on('keypress', function(evt) { if (evt.which === 13 /* ENTER */) { var q = $('#ctl13_txtSearch').val(); window.location.href = "/search?q=" + q; return; //const typeahead = $(this).data().ttTypeahead; //const hintText = typeahead.input.$hint.val(); //const menu = typeahead.menu; //const sel = menu.getActiveSelectable() || menu.getTopSelectable(); //if (menu.isOpen()) { // menu.trigger('selectableClicked', sel); // evt.preventDefault(); //} } });
:
:
boensport