Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Calculator

0

56
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 ; }
7 months ago ยท Juan Pablo Isaza
Answer question
Find remote jobs