I'm creating an inline datepicker and adding a class to specific cells
based on the date as such:

var cal = $("#calendar").datepicker();
cal.datepicker("change", { onSelect: function(dt) { $
("#results").text($.datepicker.formatDate('mm/dd/yy', new
Date(dt))) } });
var dates = [1, 5, 12, 21, 27, 30];
$(dates).each(function(i, d) { cal.find("a[innerHTML=" + d +
"]").parent().addClass("myClass"); }); }

Here's the problem: when I select a date or even just change months,
the added classes go away.

Is there anywhere I can capture the building process to better handle
the scenario of highlighting specific days in a month?

--- Jim ---
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to