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

Validating model using the Knockout validation plugin

Knockout validation is a plugin for validating the model. It uses the Knockout extenders to provide validation, similar to the concept described in the previous section. The advantage of using this plugin is that the most common extenders are already defined for you. All you have to do is configure and apply the extenders. This section will explore and demonstrate the use of the validation plugin for validating the model. The examples in this section will apply this method of validation to all the fields in the customer registration form application. You can make a copy of the customer registration form application developed in the previous chapter and apply the validation by performing the ...

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