Tagged: contact, datepicker, form
Hello.
I need to help for datepicker’s configuration options in the function of the contact form .
I was successful to change some settings with directly hard-coding in “datepicker.min.js”. For example, MinDate, MaxDate etc. But I don’t know whether it is appropriate to direct hard-coding the “datepicker.min.js” Or “class-form- generator.php”
In conclusion, I want to know how to set to disabled the weekend.
Then, please answer
Thanks.
Hey vocalman77!
Open up /enfold/framework/php/class-form-generator.php and on line 366 you should see this.
echo 'jQuery(document).ready(function(){ jQuery(".avia_datepicker").datepicker({
Add this beneath it.
beforeShowDay: jQuery.datepicker.noWeekends,
Best regards,
Elliott
Hi!
That’s a bit more complex. I found this which you may be able to use though, http://davidwalsh.name/jquery-datepicker-disable-days.
Regards,
Elliott