MVC3 Unobtrusive Validation Extension; Terms and Conditions checkbox
问题 There are a few other posts I've seen about this: MVC unobtrusive validation on checkbox not working MVC3: make checkbox required via jQuery validate? But I've implemented them and can't quite figure out why my validation isn't working properly: Attribute: [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = true)] public sealed class MustBeTrueAttribute : ValidationAttribute, IClientValidatable { public override bool IsValid(object value) {