How to make validation form?

Help to find the error in the validation form.
There are several InputB, and click submit. If the field is blank , should display the alert.
Enclose your code (I did only for the first input, and since nothing has stuck)
https://jsfiddle.net/4nwtpx4c/
Thank you
July 9th 19 at 14:08
2 answers
July 9th 19 at 14:10
Threw all the same on codepen - codepen.io/anon/pen/VaNMgB
Everything works.
checked, I only have about email notifies (but then no js is working). you have alerts pop up? - Madge39 commented on July 9th 19 at 14:13
: prevent the attributes required, they work before onsubmit - damion_Aufderh commented on July 9th 19 at 14:16
and then edit that would work? doing everything in one lesson, because the knowledge at the primary level - Madge39 commented on July 9th 19 at 14:19
as a variant to hang up the function than the form and press the send button - damion_Aufderh commented on July 9th 19 at 14:22
: redefined in html for the submit button, nothing has changed - Madge39 commented on July 9th 19 at 14:25
Well, Yes, of course, where required gets a system message.
I filled email and password and tested.
On jsfiddle I have a form submitals, and codepen - out already js alert. - Daphne_Roob commented on July 9th 19 at 14:28
: on jsfiddle, there is an error in the console climbs, I think is their school - damion_Aufderh commented on July 9th 19 at 14:31
: event on button onclick? - damion_Aufderh commented on July 9th 19 at 14:34
: onsubmit - Madge39 commented on July 9th 19 at 14:37
July 9th 19 at 14:12
Add form attribute novalidate to disable html5 validation

Find more questions by tags JavaScript