Hello I attached the preventDefault to the button submit event inside the form however it is not working. When I attached preventDefault method to his parent form container it is working, why is that happening?
searchBtn.addEventListener('submit', e => {
e.preventDefault()
})