Chapter 4. Adding Validation to the Customer Registration Form
We developed a customer registration form in the previous chapter. While the registration form application demonstrated how to work with form fields, it is missing out on a basic requirement that is expected from most web forms—validation!
In this chapter, we will add validation to our customer registration form application. We will explore two different methods of validating the form data in our model: by using the Knockout extenders and Knockout validation plugin. The chapter will walk you through applying validation to the registration form using the Knockout validation plugin.
It is important to note that the validation we are talking about in this chapter happens at the client side ...
Get KnockoutJS by Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.