Skip to content

jQuery Autocomplete Enter Key

Assuming that your autocomplete element is identified as #search in HTML. Here is the code snippet of enabling Enter key in your customized jQuery file:

    if (e.keyCode === 13){

The above code is independent from original $("#search").autocomplete() code block.

Leave a Reply

Your email address will not be published. Required fields are marked *