disable specific dates in single month of every year jquery datepicker in jquery -
i want disable specific date specific month of every year in datepicker jquery ui. example: disable auguest(month) 15(date) of every year in datetime picker
use beforeshowday
option.
$("selector").datepicker({ ... beforeshowday: function(date) { var month = date.getmonth()+1; // +1 because js months start @ 0 var day = date.getdate(); return [!(month == 8 && day == 15), ""]; } });
Comments
Post a Comment