I'm trying to prevent non numeric userinput in an inputfield:
<input ng-model-options="{allowInvalid: false}" ng-pattern="/^[0-9]*$/"
class="cell large-3" ng-model="val1" />
Unfortunatelly i can input also letters in the input. How I can change this behaviour?
Use
type="number":For more information, see
<input type="number"Directive API Reference