+ 2
Why are the results just flashing on to the screen then clearing immediatly after just a few seconds
4 odpowiedzi
+ 2
type="submit" on the submit button automatically causes the form to send a POST http request.
changing this to type="button" stops that from happening.
Adding onsubmit="event.preventDefault();" to the form is another solution
+ 1
JME the second is actually the best solution. Because, the first won't respond to the user pressing the enter key
0
My results are not clearing
0
What do you guys think of it