We are using <input type="date"/>
.
How can we make holiday dates disabled so that users cannot select the date?
We are using <input type="date"/>
.
How can we make holiday dates disabled so that users cannot select the date?
To accomplish this, I built a function that takes today's date, checks it against an array of holiday dates and increments the date until it doesn't match an array entry. I store the holidays in a separate file so that it can be updated annually without impacted the rest of the codebase.