Disable jqueryui calendar days EXCEPT the mondays of every week

→ Are you a new visitor? Please visit the page guidance for new visitors ←

Disable jqueryui calendar days EXCEPT the mondays of every week

Let’s say you want the user to be able to see all days from within the month, but to be able to select only the mondays of every week.

Here is a DEMO.

You can disable all “Sundays” by switching from “day == 1” to “day==-1” in the return clause, like this:

From there, you have full control over the week days.

Request an article ←