Comment to 'Hide Search block on page if search parameter is not used'
  • Yes, JQuery may "listen" the actions of the forms like:

    $( "#search_form_id" ).on( "submit", function( event ) {
      alert( "Handler for `submit` called." );
      event.preventDefault();
    });