views:

384

answers:

1

Hi guys,

i'm struggling to highlight the dates[startdate - enddate] which i select.Can anyone help me?

+1  A: 

You can use the beforeShowDay event. It will get called for each date that needs to be shown in the calendar. It passes in a date and return an array with [0]= isSelectable, 1= cssClass, [2]=Some tooltip text

$('#whatever').datepicker({
            beforeShowDay: function(date) {
             if (date == myDate) {
              return [true, 'css-class-to-highlight', 'tooltipText'];

              }
           }
});
David Archer