I\'m trying to stop a form from submitting using the submit eventlistener. My anonymous function runs but the form still submits, even with return false at the end of the fu
I always call event.preventDefault() on event listeners that I want to cancel the event for, as well as return false. This always works for me.
event.preventDefault()
false