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()?