I have a field "Width" which I only know the range that is permissible at runtime.

how can I add client side validation to allow between the range.

I can pass the max and min as hidden fields if needed?

should i use jquery to add these properties to the input field?: `data-val-range-min="1" data-val-range-max="10" data-val-range="message"`

(FYI im using the fluentvalidation framework too)