Here's an input form in Angular that I'm working on:
<input ng-model="sc.zip" class="form-control" maxlength="5" type="text" />
I want to keep the form as a simple empty textbox without limiting it to only numbers. However, I do want to restrict user input to numbers only. I am looking for a way to either detect when non-digits are entered or search through the textbox for any non-digit characters before submission.
In essence, I need to ensure that the form input consists of digits only. Any suggestions or assistance would be greatly appreciated!