Date/Time picker block days [Solved]

I am stuck trying to make Bubbles Date/time picker block specific weekdays like all mondays.

Does anyone have a workable solution?

Edit: just found the solution

  1. Put the Date/time picker on the page
  2. Add an empty html element
  3. Insert the following code in html element:

var $input=$(‘input.date_div.picker__input’).pickadate();
var picker=$input.pickadate(‘picker’);
picker.set(“disable”, [1,4,7]);

Note: picker.set(“disable”, [1,4,7]); 1,4,7 resymbols weekdays 1 is monday, 2 is Tuesday etc.

1 Like

Or use Plugin like Air date/time picker :wink:

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.