Hi, I am slowly learning, but have run into something odd. I'm using beforeShowDay to highlight specific days. My test code is:
$(function() { $("#datepicker").datepicker({changeMonth: true, changeYear: true, onSelect: function(dateText, inst){dateSelectFunc(dateText);}, beforeShowDay: function(curdate) { if (dateHighlightFunc($.datepicker.formatDate("yy-mm-dd", curdate)) == "highlight") { return [true,"highlightweek", "Happy Birthday Chris Carter"]; } else { return [true,""]; } } , dateFormat: 'yy-mm-dd'}); function dateHighlightFunc(dateText) { var returnval = ""; if (dateText == "2009-10-13") { returnval = "highlight"; } return returnval; } It works, and I get the popup on the 13th, but the css is not working because an extra space is getting inserted in the value of the class attribute: <td class=" highlightme" title="Happy Birthday Chris Carter" Any idea where the extra space is coming from or how to get rid of it? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery-ui@googlegroups.com To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---