I have the following code in my Model class:
[Range(1, 100)]
public decimal Price { get; set; }
After recent upgrade (I assume) of jquery.validate to 1.11.0, I am getting an error even if I enter valid value. If I turn off client validation in web.config - works fine. All other attributes (StringLength, Required) work fine. Generated HTML is the following (line breaks added for clarity):
<input class="text-box single-line" data-val="true"
data-val-number="The field Price must be a number."
data-val-range="The field Price must be between 1 and 100."
data-val-range-max="100" data-val-range-min="1"
data-val-required="The Price field is required." id="Price" name="Price"
type="text" value="" />
I am pretty sure it worked before... Can't think of anything but the bug in jquery.validate.