I have a datepicker working selectively allowing me to display dates
from an archive of when content was available. It works perfectly in
Firefox, Safari, Chrome using befoerShowDay, but it does not display
in IE:
<script type="text/javascript">
$(function() {
$("#datepicker").datepicker({ beforeShowDay: nationalDays})
natDays = [[1, 22, 109, 'us'], [1, 21, 109, 'us']];
<!-- I'm actually using PHP to echo the available days from a database
the above is just an example */ -->
function nationalDays(date) {
for (i = 0; i < natDays.length; i++) {
if (date.getMonth() == natDays[i][0] - 1
&& date.getDate() == natDays[i][1] && date.getYear() ==
natDays[i][2]) {
return [true, natDays[i][3] + '_day'];
}
}
return [false, ''];
}
});
</script>
Any Ideas?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---