Skip to content

Instantly share code, notes, and snippets.

@dislokacia
Created July 7, 2022 21:05
Show Gist options
  • Select an option

  • Save dislokacia/8269c6710f78bd2103f7f8302461ddd7 to your computer and use it in GitHub Desktop.

Select an option

Save dislokacia/8269c6710f78bd2103f7f8302461ddd7 to your computer and use it in GitHub Desktop.

Revisions

  1. dislokacia created this gist Jul 7, 2022.
    10 changes: 10 additions & 0 deletions script.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    jQuery(document).ready(function( $ ){
    $('.jet-ajax-search__submit').on('click',function(){
    $('.jet-ajax-search__form').submit();
    })
    $(".jet-ajax-search__submit").on('keyup', function (e) {
    if (e.key === 'Enter' || e.keyCode === 13) {
    $('.jet-ajax-search__form').submit();
    }
    });
    });