mardi 28 février 2017

How to set Max on input text using angular JS

I want to set max value for an amount field using angular JS

If i enter value > 10 i want to display an error message next to the textbox. Since type="text" it is not working like number.

<input type="text" name="input" ng-model="example.value"   ngmin="0" ngmax="10" >

Aucun commentaire:

Enregistrer un commentaire