Next modal that contains two fields of type date
, "From: dd/mm/aaaa
and Up: dd/mm/aaaa
" I want to set the date "From" to the current date, "Until "for a difference day and in the time
field set a default time.
Date fields:
<div class="col-md-6">
<div class="form-group">
<label class="col-sm-4 control-label" for="data-inicio-excecao"> Data * </label>
<div class="col-sm-8">
<input type="date" class="form-control" id="data-inicio-excecao" name="data-inicio-excecao" tabindex="2" />
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="col-sm-4 control-label" for="data-termino-excecao"> Até </label>
<div class="col-sm-8">
<input type="date" class="form-control" id="data-termino-excecao" name="data-termino-excecao" tabindex="3" />
</div>
</div>
</div>
Time fields:
<div class="col-md-6">
<div class="form-group">
<label class="col-sm-4 control-label" for="hora-inicio-excecao"> Hora Início * </label>
<div class="col-sm-8">
<input type="time" class="form-control" id="hora-inicio-excecao" name="hora-inicio-excecao" tabindex="4" />
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="col-sm-4 control-label" for="hora-termino-excecao"> Até </label>
<div class="col-sm-8">
<input type="time" class="form-control" id="hora-termino-excecao" name="hora-termino-excecao" tabindex="5" />
</div>
</div>
</div>
How can I do this using JQuery?