I need a jquery code that when clicking on submit it will appear an alert and will not let the user continue unless you have typed 10 characters inside the input
<form action="add.php" id = "form" method="post">
<div class="row">
<div class="form-group col-md-2">
<label for="descricao">Descrição</label>
<input type="text" class="form-control" id="Descricao">
</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>