From the course: JavaScript: Web Form Programming

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Overview of form validation approaches

Overview of form validation approaches

From the course: JavaScript: Web Form Programming

Overview of form validation approaches

- [Narrator] One of the most important parts of building a great form experience is making sure that users enter valid data and that bad data is prevented from making its way to your server as much as possible. In this chapter, we're going to take a look at client-side form validation techniques, and approaches that you can use to help ensure the quality of the data that your forms are collecting. So one of the first things I want to point out, and this is important, is that no client-side validation solution is ever 100% perfect by itself. A truly effective solution has to have validation on both the client and the server side. Having said that though, we're just going to focus on the client-side approaches in this chapter, but remember a true validation solution has to have both. So you can think of client-side validation as a set of layers. The first line of defense is to help make sure that the user…

Contents