How block / disable a day in picker date

The solution mentioned in the forum post actually works: Date/Time picker block days [Solved], but there were some parts omitted.

There were quote/double quote problems in the code, probably lost in copy paste. Also, you have to wait for loading the page, that’s why the code should run when the page is fully loaded. Simply, add this code to the HTML element:

<script>
$(function() {
   var $input=$('input.date_div.picker__input').pickadate();
   var picker=$input.pickadate('picker');
   picker.set("disable", [7]);
});
</script>

See the demo:
chrome_iGkrmdallh

And here is the editor if you want to see yourself: Tests for Forum 11 | Bubble Editor

2 Likes