1
When I send the data for validation, it is stated that the field has a completed date, like today’s date. I would like to set as null at first obliging the user to fill in the field.
DATEPICKER
$('#datepicker')
.datepicker({
format: "dd/mm/yyyy",
language: "pt-BR",
orientation: "top auto",
});
JAVASCRIPT
$(document).ready(function(){
if ($( "#tipo_retorno" ).val() == "AGENDAMENTO"){
$("div.atendimento-simples").hide();
$("div.atendimento-agendamento").show();
}
});
$(document).ready(function(){
$('#tipo_retorno').on('change', function(){
var demovalue = $(this).val();
if(demovalue == "AGENDAMENTO") {
$("div.atendimento-simples").hide();
$("div.atendimento-agendamento").show();
}else{
$("div.atendimento-simples").show();
$("div.atendimento-agendamento").hide();
}
});
});