Sort by:
Need Help?
document.addEventListener("DOMContentLoaded", function () { const parents = document.querySelectorAll( "#tbay-mobile-menu-navbar .menu-item-has-children > a.elementor-item" ); parents.forEach(parent => { parent.addEventListener("click", function (e) { e.preventDefault(); const li = this.closest(".menu-item-has-children"); // Toggle active class li.classList.toggle("active"); // Toggle submenu const submenu = li.querySelector(".sub-menu"); if (submenu.style.display === "block") { submenu.style.display = "none"; } else { submenu.style.display = "block"; } }); }); }); document.addEventListener("DOMContentLoaded", function () { document.querySelectorAll("#tbay-mobile-menu-navbar .mm-panel, .mm-hidden") .forEach(el => { el.classList.remove("mm-panel", "mm-hidden"); }); });