So I have an input with the type text
:
<div class="row">
<div class="form-group">
<input type="text" class="form-control col-sm-12" id="last-name-reservation-form" placeholder="Last name" required>
</div>
</div>
How would I be able to filter on the input characters, such that it only takes text and not numbers? Sort of similar to how type="number"
only allows numbers to be input.
Do I have to make something in the controller or can it be done directly in the .html?