Comment to 'Hide Search block on page if search parameter is not used'
  • I thought so and issue is that how Js will know if button is pressed ? i was not able to figure it out .. I was thinking that Page will refreshed and i can use any anchor to trigger Java Script and hide latest ads block. Any thoughts?

    • Yes, JQuery may "listen" the actions of the forms like:

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