I have been trying to search for a solution to my Jquery ui datepicker problem and I'm having no luck. Here's what I'm trying to do...
I have an application where i'm doing some complex PHP to return a JSON array of dates that I want BLOCKED out of the Jquery UI Datepicker. I am returning this array:
["2013-03-14","2013-03-15","2013-03-16"]
Is there not a simple way to simply say: block these dates from the datepicker?
I've read the UI documentation and I see nothing that helps me. Anyone have any ideas?
If you want to also block Sundays (or other days) as well as the array of dates, I use this code:
IE 8 doesn't have indexOf function, so I used jQuery inArray instead.
You can use beforeShowDay to do this
The following example disables dates 14 March 2013 thru 16 March 2013
Demo: Fiddle
For DD-MM-YY use this code:
var array = ["03-03-2017', '03-10-2017', '03-25-2017"]
If you want to disable particular date(s) in jquery datepicker then here is the simple demo for you.