skip to Main Content

Javascript – Search Submit on Pressing Enter

I'm trying to get my search bar to work when pressing enter. It works when pressing the button but not when you press enter.... /** * search toggle */ const searchTogglers = document.querySelectorAll("[data-search-toggler]"); const searchBox = document.querySelector("[data-search-box]"); for (let i…

VIEW QUESTION
Back To Top
Search