Tagged: datepicker, disable
Hi team!
I want to disable MONDAYS in the daypicker of contact form.
I read this: https://kriesi.at/support/topic/datepickers-configuration-of-the-contact-form/
And this: https://forum.jquery.com/topic/datepicker-disabling-mondays
But still cant disable just MONDAYS.
Any idea?
Thanks a lot!
Hey Victor!
Please go to /enfold/framework/php/class-form-generator.php and on line 366 and find
echo 'jQuery(document).ready(function(){ jQuery(".avia_datepicker").datepicker({
and add following right below it
beforeShowDay: function(date) {
var day = date.getDay();
return [(day != 1)];
}
Best regards,
Yigit
Thanks for the fast answer!
Unfortunately when I add this code, the datepicker just dissapear.
Now when I click date input no calendar shows up.
Any Idea?
Thanks!
Hey!
Add this in the Quick CSS field:
.ui-datepicker-calendar tr td:first-child {
pointer-events: none;
}
.ui-datepicker-calendar tr td:first-child a {
background: gray;
}
Best regards,
Ismael
Thanks!
Works perfect now!