3
I have two inputs and I need the term input value to be greater than the start input value. Both are text type. Someone could help me ?
<div class="w3-half">
<label>Data de Início</label>
<input type="text" name="data_inicio" class="w3-input w3-border" placeholder="YYYY-MM" maxlength="7" minlength="7" pattern="^\d{4}-\d{2}$" title="Insira o valor no formato solicitado: YYYY-MM" required />
</div>
<div class="w3-half" style="width: 40%">
<label>Prazo</label>
<input type="text" name="prazo" class="w3-input w3-border" placeholder="YYYY-MM" maxlength="7" minlength="7" pattern="^\d{4}-\d{2}$" title="Insira o valor no formato solicitado: YYYY-MM" required />
</div>
It will have to be with javascript. And you should also prevent people from filling the deadline first
– Miguel