Disable Dates
-
Firstly, thanks for the plugin!
I am having an issue with disabling specific dates from an array like I have done in the past on other non-wp sites.
The below code is not working. What can I do to make this work with the WP Datepicker plugin?
<script>
var array = [“11-10-2018”];
jQuery(‘#datepicker’).datepicker({beforeShowDay: function (date) {
var string = jQuery.datepicker.formatDate(‘mm-dd-yy’, date);
return [array.indexOf(string) == -1]
}});
</script>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Disable Dates’ is closed to new replies.