3
I’ve already managed to make a mask, but I still can’t validate whether or not this cnpj exists.
What I have today is
<input id="input-cnpj" name="cnpj" id="cnpj" ng-model="data.cnpj" type="tel" ui-mask="99.999.999/9999-99" ng-click="insereClass()" required>
Does anyone know how I could do this validation? I only found it in Jquery formats
You wonder if he exists or if it is a valid number?
– bfavaretto
And how so, found in jQuery formats? If you want to just validate, is a mathematical operation, just pure Javascript. For example: http://answall.com/questions/47033/valida%C3%A7%C3%A3o-cnpj-javascript
– bfavaretto