Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Autosuggest Phrases – populate on Tab › Reply To: Autosuggest Phrases – populate on Tab
February 4, 2021 at 4:05 pm
#31447
Keymaster
Hi Mike,
You should be able to achieve that with this custom code:
add_action('wp_footer', 'asp_tab_trigger_right');
function asp_tab_trigger_right() {
?>
<script>
jQuery(function($){
$('input.orig').on('keydown', function(e){
var kc = e.which || e.keyCode;
if ( kc == 9 ) {
e.preventDefault();
var ev = jQuery.Event("keyup");
ev.which = 39;
$(this).trigger(ev);
}
});
});
</script>
<?php
}