ericmbarnard/Knockout-Validation — Issue #1: Add 'step' rule
Author: ericmbarnard
Created: 2011-11-01 20:47:59+00:00
State: open

HTML 5 input validation attributes seem to allow a 'step' attribute that denotes a valid increment for a number.

We could implement this as:

```javascript
ko.validation.rules['step'] = {
validator: function(val, step){
return val % step === 0;
},
message: 'The value must increment by {0}'
};
```