I have this entry, in a form. But the use of onchange="submit ()" invalidates my selection.
<div class="form-group">
<div class='input-group date'>
<span class="input-group-addon" title="Fecha visita"><i class='fa fa-calendar pr-1'></i></span>
<input id="datepicker" class="form-control text-center" onchange="submit()" name="inputfec" value="<?php echo $feccot; ?>">
</div>
<script>
$('#datepicker').datepicker({
locale: 'es-es',
uiLibrary: 'bootstrap4',
format: 'yyyy-mm-dd'});
</script>
</div>
How to use a function every time you change the date. Without using a button.