I'm making a form and to insert the date and send it I have no problem. The problem comes when I try to manually enter a date from js, it does not load.
I enclose the input code:
<input class="form-control datetimepicker" type="date" id="fecha_nacimiento" name="fecha_nacimiento"/>
And I have attached the JS code:
$('#fecha_nacimiento').val(fecha_nacimiento);
Being date of birth a style value: 01/01/1990.
Any ideas? Thanks in advance.