My code is [date* datepicker min:today+5days id:datepicker]
However i try to insert my javascript in the page directly or on the form and it does not work.
$("#datepicker").datepicker({ beforeShowDay: function(date){ return [date.getDay() == 1 || date.getDay() == 2 || date.getDay() == 3 || date.getDay() == 4 || date.getDay() == 5,""]} });
I'm using a custom endpoint for woocommerce. basically i want a form so customers can ask for their items returned but has to be 5 days ahead of todays date and not weekends.
Hi All,
My code is [date* datepicker min:today+5days id:datepicker]
However i try to insert my javascript in the page directly or on the form and it does not work.
$("#datepicker").datepicker({ beforeShowDay: function(date){ return [date.getDay() == 1 || date.getDay() == 2 || date.getDay() == 3 || date.getDay() == 4 || date.getDay() == 5,""]} });
I'm using a custom endpoint for woocommerce. basically i want a form so customers can ask for their items returned but has to be 5 days ahead of todays date and not weekends.
Any ideas?