Hi all,
I'm new to the forum and javascript.
Im having a bit of an issue with the jquery datepicker.
The datepicker is used to select a delivery date, with restrictions on what days can be picker from todays date.
I want to be able to set the minDate to be 48 hours in advance.
Unless today is the weekend, then first delivery is a Wednesday.
I'll attach the code I have below, but any help would be grateful.
Code:
var dt = new Date();
$("input[value*='EnterDate']").val('').datepicker({
minDate:(dt.getDay() == 5 ? +5 : +3),
});