Here's my input field with label as ID, I want this input field to only accept numbers without changing the type to number.
<label for="id">ID:</label>
<input type="text"
class="form-control form-control-sm"
formControlName="idCardInput"
name="idCard"
id="idCard"
ng-pattern="/^[0-9]*$/" />