Skip to content
Advertisement

jQuery Date Picker- Block a future date range

I have jQuery Date Picker on a Shopify store and have been having some issues trying to block out the upcoming range of dates from 24/12/2021 – 04/01/202 DD MM YY, we will not be operating on these days.

Any advice would be very much appreciated, this is the script we are currently using.

JavaScript
JavaScript

Advertisement

Answer

You need to use beforeShowDay and check which date you need to show without weekend days.

I commented my code below.

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement