• Resolved Yaswat

    (@statlercity)


    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)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Your code is correct. Maybe the order is not correct, sometimes it happen that one script overrides other. Can you please provide the URL so i can confirm?

Viewing 1 replies (of 1 total)
  • The topic ‘Disable Dates’ is closed to new replies.