• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

139
Views
Pikday enable days that are disabled by weekdays

I wonder if there is a simple solution to activate some faction days in the pikaday datepicker.

I blocked all Tuesdays Wednesdays, Thursdays and Sundays with date.getDate. However, I do not want to block 5 vacation days if they fall on Tues, Wed, Thurs or Sundays, they will also be blocked. Can I include an exception in the javascript?

I understand that with jquery and moment there is a solution just like creating an array in php and removing these dates and then presenting them. With that, the advantage of a date picker of only 5k is gone.

I like php but javascript is not my thing.

Does anyone see a solution ?

disableDayFn: function (date) { return date.getDay() === 0 || date.getDay() === 2 || date.getDay() === 3 || date.getDay() === 4 ; }
almost 3 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error