Created
February 15, 2022 16:52
-
-
Save wpflames/df3abf53909f4ce3d01ec7fb9b32f737 to your computer and use it in GitHub Desktop.
Disable Weekends and Previous Dates in DatePicker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready(function () { | |
| jQuery(".checkout-date-picker").datepicker({ | |
| // Disable Weekends | |
| beforeShowDay: jQuery.datepicker.noWeekends, | |
| // Disable Previous Dates | |
| minDate: 0 | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment