I would like to limit the maximum number of characters in an input and textarea to 20 each. How can this be achieved? Any assistance is appreciated.
<form novalidate name="editartistForm">
<div class="col-md-6 field_container">
<md-input-container class="md-block log_container" flex-gt-sm>
<label>Name</label>
<input required type="text" name="name" ng-model="edit_artist.name">
</md-input-container>
</div>
<div class="col-md-12 field_container">
<md-input-container class="md-block log_container" flex-gt-sm>
<label>Short Description</label>
<textarea type="text" name="description" ng-model="edit_artist.description" rows="5"></textarea>
</md-input-container>
</div>