Now that we have our validation error handling in place, we can move on to extracting a dedicated
Form class. This class can be responsible for resetting itself, submitting the AJAX request to our server, and more. Ready to dig in?
Once you finished this lesson, it's over to you. How might you expand these two classes two simplify your form interaction even further? Get started, and then let us know what you came up with in the comments.
The completed source code for this lesson is available on GitHub.