The Native Validation Rules of Knockout Validation

The KnockoutJS library does not come with its own validation by default and so, you have to choose from any of the validation frameworks available out there or create your own. For me, it's a perfect fit to use KnockoutJS Validation library which can be downloaded here. In this blog post, I'll list down the native validation rules that are available when using Knockout validation. I will not be giving a lot of concrete examples as I will focus more on the logic of how each of the native validation rules work.

The general syntax of using knockout validation is shown below...





Client-Side Binding 101 Using KnockoutJS

KnockoutJS is a Javascript framework that allows you to create a web site using MVVM design pattern. The fundamental concept of KnockoutJS is data binding so in this blog post, I'll be talking about how to bind your html elements to the data that needs to be displayed as well as to the commands associated to the events in your form.

I'll be using the Contact page of my site to explain the bindings. First off, let's create the contact form...