0

Here is my code:

<input type="number" ng-model="model" min="0" max="23" />

I'm able to enter values in text box other than MIN MAX I have provided

Morphyish
  • 3,932
  • 8
  • 26
  • 3
    See https://stackoverflow.com/questions/32936352/html-number-input-min-and-max-not-working-properly – Wiktor Stribiżew Aug 09 '19 at 09:47
  • 2
    @WiktorStribiżew despite the lag of tag, I think he is using AngularJS, so a jQuery solution might not be optimal – Morphyish Aug 09 '19 at 09:51
  • 2
    Maybe. Also, there is [Angular.JS - only allow up to a certain number value in an input number field](https://stackoverflow.com/questions/37305136), [How to only allow the numbers 0-5 in fields with AngularJS?](https://stackoverflow.com/questions/31500938).. or even [**Angular JS - How do you validate the number of digits in a number input**](https://stackoverflow.com/questions/33757385) (*have an input that only accepts 0 - 24 (for a time entry application).*) – Wiktor Stribiżew Aug 09 '19 at 09:55

0 Answers0