I am trying to highlight the day on the calendar. The highlighted days are from Visual Model (IEnumerable Type) My code is as follows:
"; } $ (Document) .ready (function () {// Datepicker $ ('datepicker') Datepicker ({inline: true, before showdown: function) {var theday = date.getDate (); if ($. InArray (day, date and time) & lt; 0) return [true, ""]; return [true, "special date"];}});});
Please tell me what is wrong with your code ...
Thank you very much !! Anusha
This part looks incorrect:
if ($ .inArray (day, date and time) & lt; 0) return [true, ""]; Return [true, "special date"]; } Check the statement if you should use {} while using an I statement instead of relying on one line. Besides, what error are you getting? For code, I can suggest it instead:
Before ShowDay: function (date) {var theday = date.getDate (); If ($ .inArray (days, dates) & lt; 0) {return [true, ""]; } Return [true, "special date"]; }
Comments
Post a Comment