1
The date field cannot allow Retroactive dates. need the script to recognize the current date and not allow earlier dates.
<div class="col-sm-4">
<label for="ultimoDiaTrab" class="control-label">Último dia a ser trabalhado:</label>
<input type="date" id="ultimoDiaTrab" name="ultimoDiaTrab" class="form-control" disabled />
</div>
Thus, it fixes the current date. I need it to recognize the current date and not allow old dates. ie, it may have future dates. In the case that passed me, he does not allow. Thank you, Sergio!!
– Karina Pinheiro
@Karinapinheiro my example allows future dates.
– Sergio
Sergio, it did work! It was my mistake here. A question, what if it was to appear a warning instead of replacing the date? type " enter a Future date" as soon as the field has been filled in.
– Karina Pinheiro