I just revisited this post because I need to disable a specific date (25th August 2019).
However when I implemented the code in the html page of the form it is not working.
I know back in 2015 it did work and I cannot work out why it is not now.
Here is the code I am trying to use:
<!-- End of the headers for CoffeeCup Web Form Builder -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
var holidays = ["25/08/2019"]; //Enter the needed dates here.
$( "#item27_date_1" ).datepicker({
beforeShowDay: function(date){
var datestring = $.datepicker.formatDate('dd/mm/yy', date);
return [ holidays.indexOf(datestring) == -1 ]
}
});
});
</script>
Anyone any idea what I'm doing wrong?
I suspected a caching issue but this is not working on multiple browsers, when using Firefox I am clearing the cache, site data and cookies, then when reload it is still displaying the date 25th August 2019