I have created a custom validation attribute which works server-side (after form is posted) but I cannot get the validation to work client-side.
The custom attribut
Add this to your Web.config
Cool then try modifying your rule to use the rule below.
$.validator.unobtrusive.adapters.add("reasonable", ["reasonable"], function (options) { options.rules["reasonable"] = "#" + options.params.reasonable; options.messages["reasonable"] = options.message;});