how to pass array value from model to jquery datepicker? -


I am trying to highlight the day on the calendar. The highlighted days are from Visual Model (IEnumerable Type) My code is as follows:

   

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