title: How do i disable public holidays in a jQuery UI date picker?
body: <p>I'm making a holiday booking application and obviously you don't need to book off holidays that are already given to you, so I need to know how I can disable, Christmas, for example from the date picker every year without me having to change the code every year. </p>
  
  <p>This is my jQuery UI date picker code so far:</p>
  
  <pre><code>&lt;script&gt;
  $(function() {
    $("#from").datepicker({
        beforeShowDay: $.datepicker.noWeekends,
        defaultDate: "today",
        changeMonth: true,
        numberOfMonths: 1,
        minDate: "today",
        dateFormat: "dd/mm/yy",
        onClose: function(selectedDate) {
          $( "#to" ).datepicker("option", "minDate", selectedDate);
        }
    });
    $("#to").datepicker({
      beforeShowDay: $.datepicker.noWeekends,
      defaultDate: "today",
      changeMonth: true,
      numberOfMonths: 1,
      minDate: "today",
      dateFormat: "dd/mm/yy",
      onClose: function(selectedDate) {
        $("#from").datepicker("option", "maxDate", selectedDate);
      }
    });
  });
  &lt;/script&gt;
  </code></pre>