Form Validation and Manipulation
jQuery offers a range of methods to detect when a user interacts with a form, we'll be using these methods in conjunction with other jQuery methods to add some browser-based validation to a simple contact form.
4 videos • 0 quizzes • 4 code challenges
-
Play
Preview
Text Input Events
6 minutes 50 seconds
-
Code Challenge
Preview
Code Challenge: Text Input Events
2 objectives
-
Play
Preview
Modifying Attributes
7 minutes 1 seconds
-
Code Challenge
Preview
Code Challenge: Modifying Attributes
4 objectives
-
Play
Preview
Checking Values
7 minutes 52 seconds
-
Code Challenge
Preview
Code Challenge: Checking Values
3 objectives
-
Play
Preview
jQuery Utility Methods
3 minutes 3 seconds
-
Code Challenge
Preview
Code Challenge: jQuery Utility Methods
2 objectives
Improve the validation to check the length of the content of the message. Let's say you can't submit the form if the message is less than 15 characters long.
Using the text() method to alter the message body hint to help the user out.