Duration: 16:14 min
Summary: In this video, we will talk about forms validation. There are two places of validating the form data the user is entering: On the client side and on the server side. As a developer, you need to do both. The reason is that the hacker could intercept the data and change it on its way to the server. In our case, I am validating on the client side. We will start with a simple form that has no validation. We will notice that nothing happens when we click on the submit button. Then, we will make slight modification to the form and make some fields required. After that we will try to submit the form. We can see that HTML 5 already support the “required” attribute and will provide us with the error messages to indicate that the fields are required. However, the experience is not the same across browsers. So, we will take a look at using a plugin. This is the discussion of the next video.