I am using Asp.net MVC3 and knockoutjs library. I need to do some client side validation. I am exploring the knockout validation plugin.
So I declare the following ko.observable value in my js code:
var numberValue = ko.observable().extend({ number: true })
This is my view part:
<input data-bind = "value: numberValue " />
When the user enters some value that is not a number an error message is displayed : "Please enter a number". Can I display a different error message but still using the native rules? I do not want to write custom validation logic just for this. Any help with some working example will be greatly appreciated. Thank You!