Posts by user130348 • 26 points
1 post
-
1
votes2
answers454
viewsA: Submit being called twice
The e.preventDefault(); will prevent the form to do Ubmit, but who is doing Ubmit is the button, once by default behavior, and again because of the eventListener you put in it. You can treat this in…