I have an EditorFor
razor defined input box that sets the value for "Hours" that has it's data model bound:
@Html.EditorFor(modelItem => item.Hours, null, "weeklytargets[" + item.WeeklyTargetId + "].Hours")
When it's spit out to HTML it looks like so:
<input class="text-box single-line" data-val="true" data-val-number="The field Hours must be a number." id="weeklytargets_17__Hours" name="weeklytargets[17].Hours" type="number" value="10">
How can I add attributes min and max for this input box of type number?