1
00:00:00,300 --> 00:00:05,730
So somewhere down the line, every web developer needs to do form validation, so you've got a form

2
00:00:05,850 --> 00:00:11,910
you need to validate the input field, such as if it's an email, if it's a number, and also if the

3
00:00:11,910 --> 00:00:15,990
TextField has been actually filled out and this can be done with JavaScript.

4
00:00:15,990 --> 00:00:22,560
And I know each HTML5 has a really good part that's been added to it that's going to allow you to add

5
00:00:22,560 --> 00:00:27,660
this to the input fields so it doesn't hurt to have JavaScript doing the same thing as well.

6
00:00:27,750 --> 00:00:31,050
And of course, with JavaScript, you can style it and make a look a whole lot better.

7
00:00:31,230 --> 00:00:31,920
So let me show you.

8
00:00:32,370 --> 00:00:39,150
So this particular form is going to listen for the click and it's going to test to see if these values

9
00:00:39,150 --> 00:00:41,030
are proper in the fields.

10
00:00:41,250 --> 00:00:43,350
So it's looking for a valid email address.

11
00:00:43,470 --> 00:00:48,470
It's also looking for a password that needs to be a certain number of characters and then also a username.

12
00:00:48,600 --> 00:00:54,060
So as long as you fill those out and you filled it out properly, then at that point you can submit

13
00:00:54,210 --> 00:00:54,930
the form.

14
00:00:55,050 --> 00:01:00,060
It's going to be using regex in order to pattern match to make sure that we do have the right field

15
00:01:00,060 --> 00:01:00,510
input.
