1
I need a jquery code that when clicking on Submit it appears an alert and does not let the user continue unless you have entered 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>
The "min-length" will be a great front-end solution for this type of problem. Thanks for ajua, more needed a solution via code. Solved.
– w.rock