I want the calendar to automatically select the day after if a customer selects a closing day.
var selectedday= $('#calendarid').val();
if(selectedday.getDay() == 6) $(#calendarid).datepicker('setDate', 1);
This gets me "selectedday.getDay() is not a function" as I guess that a string is being returned and not an object.
Can somebody help?
Kind regards,