In the previous movie, we created validation when the user submits the form. …Now I'm going to show you how to handle more interactive validation. …This time we're going to check for validation when the user exits a field …and has a placeholder attribute. So I'm going to come right here and I'm …going to do the dollar sign again. And I'm going to type in input. …And then use the type selector which are these brackets and type in place holder …that way we'll look for fields that are input fields and also have a place holder. …And then we'll attach the blur method. The blur method will happen when somebody …exits a field. So this will execute a function.…

This is going to be a function literal, or a function with no name. …And we're going to do something in here. So, what I'm going to do is, remove the …current errors that are on the page. Now, I'm going to create a set of …variables that's going to keep track of things. …First, a variable to receive the pattern from the pattern attribute in the form. …

Resume Transcript Auto-Scroll

Author

Released

4/23/2013

Validating web forms is a critical skill for any web developer, ensuring that the data that's submitted is complete, accurate, and nonmalicious before it's sent off to the server. Join author Ray Villalobos in this course as he shows how to validate input from site visitors with HTML5, JavaScript, and jQuery and then process the data with PHP. Plus, learn how to email form data and save it in a MySQL database so that it's ready for other applications.