O'Reilly logo

KnockoutJS by Example by Adnan Jaswal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required