Search button and close status

I try to add function and close search input not only .click(function() but also outside search input if there is empty search value.

jQuery(document).ready(function() {
jQuery(".search-header-replace-toggle").click(function() {
jQuery(’#searchform-header-replace’).addClass(“show”);
});

jQuery("#searchform-header-replace-close").click(function() {
jQuery(’#searchform-header-replace’).removeClass(“show”);
});
});

How to manage close button not only on .click(function()?

Hey there

Sorry, but we support only basic theme related problems, im so sorry but your question is customization character :frowning:

Hope you understand