Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › One Filter for Two Elementor Widgets › Reply To: One Filter for Two Elementor Widgets
December 13, 2023 at 9:58 am
#46359
Keymaster
I think you could hook into the asp_search_start event, which is fired when a search is triggered via ajax search pro.
Something like:
document.querySelectorAll(".asp_main_container").forEach(function(el){
el.addEventListener("asp_search_start", function(event) {
document.querySelector("#featured_element").style.display = 'none';
});
});