Skip to main content
UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
  • Platform
  • Resources
  • Community
  • Pricing
Comment 'It will require to h...' to 'Hide Search block on page if search parameter is not used'
Comment to Hide Search block on page if search parameter is not used
    •  ·  LeonidS
    •  ·  In reply to

      D

      deep
    •  ·  2024-07-23T10:24:24+0000

    It will require to have the custom JS / JQuery code which will hide this block before the submit of the search form.

    • D

      •  ·  deep
      •  ·  In reply to
        LeonidS
      •  ·  2024-07-23T17:45:30+0000

      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?

        •  ·  LeonidS
        •  ·  In reply to

          D

          deep
        •  ·  2024-07-24T17:06:45+0000

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

        $( "#search_form_id" ).on( "submit", function( event ) {
          alert( "Handler for `submit` called." );
          event.preventDefault();
        });
        
      See more...
      • Features
      • Pricing
      • Forum
      • Blog
      • Market
      • About
      • Copyright
      • Contact
      • Terms
      • Privacy
      • 𝕏
      Search
      UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
    • Platform
      • Features
      • Core CMS
    • Resources
      • Documentation
      • Marketplace
      • Discussions
      • Support Groups
      • API Reference
      • UNA CMS on GitHub
      • Webinars
      • Blog
    • Community
      • Discussions
      • Groups
      • Webinars
    • Pricing
    • Are you sure?
      Please, enter a value here