Valid values for ModelClientValidationRule ValidationType string?

asp.net-mvc, asp.net-mvc-3, c#, javascript, jquery-validate

Solution

Taken from jquery documentation, I would suspect you cannot use date type but convert your date to a number and it will probably work.

Problem

Is there a lsit of what validation rule types are directly available, without having to code a new one? e.g. JQuery.validation has "min(value)" But I have tried ``` var rule = new ModelClientValidationRule(); rule.ErrorMessage = ErrorMessage; rule.ValidationParameters.Add("required", true); rule.ValidationParameters.Add("min", _minDate); rule.ValidationType = "min"; yield return rule; ``` without success. Are the only options the inherited classes?

Original source