Questions tagged [knockout-validation]

A plugin for knockout.js for declarative, rule-based validation of models and properties.

Knockout Validation allows for validation of knockout.js view model observables through extenders with:

The plugin also supports Asynchronous Validation.

Examples of such extensions include:

var myValue = ko.observable().extend({ required: true });
var myValue = ko.observable().extend({ max: 10 });
513 questions
-2
votes
1 answer

convert a decimal to integer in KnockOut

var amount = vm.AMOUNT(); The Above statement is coming with decimal point, I need to convert this statement to Interger.(Without Decimal Point)
Avi
  • 35
  • 1
  • 9
-3
votes
1 answer

how to set company name should start with character javascript validation rule? it can contain Numbers and special characters followed by character

i want to set validation rule for company names which should start with character and it can contain numbers and special characters.. For example: 360 Angel - should not be allowed Angel 360 - Allowed
-4
votes
1 answer

Drop down from array of objects

Hi I am newbie in Knockout Js.Can anyone please explain me how can I create drop down from array of Objects.I want the text and the value of drop down should be different.And the objects are in Key Value Pair. Thanks In Advance.
1 2 3
34
35