Skip to content

Instantly share code, notes, and snippets.

Last active Jun 8, 2021
What would you like to do?
HTML5 - Validar número de celular em São Paulo
<div class="form-group">
<label for="phone">Telefone <span class="required">*</span></label>
<input type="text" class="form-control" id="phone" name="phone" placeholder="(99) 9999-9999" pattern="(\([0-9]{2}\))\s([9]{1})?([0-9]{4})-([0-9]{4})" title="Número de telefone precisa ser no formato (99) 9999-9999" required="required" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment