1
Could you help me with this validation? The "txtTelCel" field should be ###-#########, where # is a numeric digit and, if it is not in this format, a warning should appear informing the user.
Note: without using jQuery.
<label for="txtTelCel">Telefone Celular:</label></div>
<div>
<input type="text" id="txtTelCel" name="txtTelCel" size="50" maxlength="8">
</div>
Have you tried https://igorescobar.github.io/jQuery-Mask-Plugin/ ?
– Berriel
I need it to be in Javascript
– user39767