<input type="text" id="date_of_data" name="date_of_data"
class="form-control " onfocus="getdpicker2()"
value="<?php echo $enter_date; ?>">
function getdpicker2() {
$('#date_of_data').daterangepicker({
singleDatePicker: true,
format: 'YYYY-MM-DD',
singleClasses: "picker_4"
}, function (start, end, label) {
console.log(start.toISOString(), end.toISOString(), label);
});
}
once i change my submission date my datepicker show invalidate error i can’t able to change this script