I'm trying to implement a character limiter for this text-box, but I have no idea how to do this. It is a page of insertion of posts in a portal and the title must have a limit.
<div class="form-group col-md-12">
<div class="form-group col-md-12">
@Html.LabelFor(m => m.Titulo)
@Html.TextBoxFor(m => m.Titulo, new { @class = "form-control" })
@Html.ValidationMessageFor(m => m.Titulo)
</div>
</div>
How can I implement a limiter?
@Html.TextBoxFor(m => m.Titulo, new { @class = "form-control" })