1
I am a beginner in programming, how do I insert a mask and a Cpf validation in this script ? It can be php or jquery.
<h2>Novo Cliente</h2>
<form action="add.php" id = "formCandidate" method="post">
<hr />
<div class="row">
<div class="form-group col-md-7">
<label for="name">Nome</label>
<input type="text" class="form-control" id="name" name="candidate['pes_nome']" required>
</div>
<div class="row">
<div class="form-group col-md-3">
<label for="cpf">CPF</label>
<input type="text" class="form-control" id="cpf" name="candidate['pes_cpf']" required>
</div>
</div>
<div id="actions" class="row">
<div class="col-md-12">
<button type="submit" class="btn btn-primary">Salvar</button>
<a href="index.php" class="btn btn-default">Cancelar</a>
</div>
</div>
</form>
see about jquerymask at this link https://igorescobar.github.io/jQuery-Mask-Plugin/
– Diego Lela