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
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Overview of form validation approaches2m 10s
-
(Locked)
Leveraging basic browser validation3m 21s
-
(Locked)
Implementing better browser validation6m 43s
-
(Locked)
Using CSS to enhance dynamic validation9m 47s
-
(Locked)
Filtering key input9m 57s
-
(Locked)
Using JavaScript for validation7m 3s
-
(Locked)
Challenge: Form validation2m 21s
-
(Locked)
Solution: Form validation3m 53s
-
(Locked)
-