page refreshes on form submit, what could be the reason
Answered
American Chinchilla posted this in #help-forum
American ChinchillaOP
basically after i submit a form page fully refreshes so i cant really even check if there is an error cause console clears
5 Replies
Yakutian Laika
what does your code look? in html that's the form's default behavior
American ChinchillaOP
i just have
<form>
and i pass onSubmit to it, how can i stop that behaviourevent.preventDefault();
try this?
Answer
American ChinchillaOP
yea i did thanks
nice! feel free to mark solution if it worked 🙂