From the course: Building Great Forms with HTML and CSS

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

JavaScript validation

JavaScript validation

- [Instructor] For a better user experience, you might consider using a more robust client side validation. This type of validation is done on the client side using JavaScript. By using JavaScript, users input can be validated as they type, and we can control feedback as the user interacts with our form field. This means a more responsive, visually rich validation. Let me show you what I'm talking about. Here we have a form, that is very similar to what we were working on prior. If I go ahead and start to enter some information, you can see that our helper tips at the bottom are letting us know, what we need to enter. And as soon as I meet the criteria, they're going to change color, and they'll also have a little check. We also have the CSS styling, applying to the input field, indicating that this field has been entered correctly. If I come down to my password, and I start to enter some information, I know you can't…

Contents