Is there a way for me to apply the form-control class to this TextBoxFor element? I'm still learning the basics of coding.
<div>
<div class="form-group text-center">
<Label class="center-block">Hours</Label>
</div>
<div style="margin-top:-1%" class="form-group text-center">
@Html.TextBoxFor(model => model.hours, new { type = "number", min = "0", step = "1", htmlAttributes = new { @class = "form-control center-block" } })
@Html.ValidationMessageFor(model => model.hours, "", new { @class = "text-danger" })
</div>
</div>
Outcome: