I use xdsoft datetimepicker so that users can select a deadline. I would like to show a warning if they choose one of the next 3 days.
I originally set minDate, so these days were not selected, but I would prefer those days to be selected, and a warning window is displayed instead.
I'm not sure if the option for this already exists, I could not find it in the documentation.
This is how I did it -
HTML
<h3>Deadline:</h3>
<input type="text" id="datetimepicker"/>
JQuery
$('#datetimepicker').datetimepicker({
timepicker:false,
format:'d/m/Y',
formatDate:'Y/m/d',
minDate:'+1970/01/04',
});
I also installed jsfiddle
Thank you guys, if you could direct me on the right path, it would be very grateful