End result:

var cal = $("#calendar").datepicker();
var dates = [1, 5, 12, 21, 27, 30];
$(dates).each(function(i, d) {
  cal.find("a[innerHTML=" + d + "]").parent().addClass("myClass");
});

I needed to use innerHTML instead of text.
--~--~---------~--~----~------------~-------~--~----~
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