Hi,
You will need to use a custom cell renderer. An example of doing this
can be seen here:
http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerCustomCellRender.html
As you can see, the example marks weekends with a different CSS class
and makes them disabled. Of course you can do whatever you like in the
renderCallback function e.g.
$('.date-pick2').datePicker(
{
renderCallback:function($td, thisDate, month, year)
{
if (thisDate == Date.fromString('07/07/2007')) {
$td.addClass('myGreenBackgroundClass');
}
}
}
);
(untested but you should get the idea...)
Hope that helps,
Kelvin :)
amircx wrote:
hey. i using datepicker and i want somehow to define to this script that he
will add diffrent background to some block of a day
all the days are "RED " background
07/07/2007 - "GREEN BACKGROUND"
like to mark a specipic date for hollyday or somthing else... i did
$('.date-pick2').dpSetSelected('07/07/2007'); but its marks it and once user
click somthing else its unmark it.. i need somthing prem... is anyone knows
how?