1
Good afternoon, I have an input type "number" and I need to limit the number of characters, but the way I’m doing is not working.
<input id="turbidez" type="number" ng-maxlength="7" ng-model="turbidez.turbidez" required />
When I take the field type "number", the ng-maxlength works, the problem is that I can’t leave field without type as it will affect other parts of the system.
Does anyone have any idea?
I tried with max="9999999" and ng-max="9999999", but it didn’t work.
– jveing
@jveing Included a functional example in the response.
– OnoSendai
Onosendai, I have solved the problem. Not exactly how I wanted it, which was to actually limit the number of characters, but now it shows a message as it passes the maximum amount. I used the example you passed max="9999999".
– jveing