Skip to content Skip to sidebar Skip to footer

Jquery Datepicker- Highlight Date Selected From Datepicker In A Calendar

How do I highlight the date selected by two different associates on associate.html in training.html,that is, two associates select their training dates and these two dates must be

Solution 1:

I think your problem is that dates are not highlighted correctly, isn't?

Try this:

<styletype="text/css">.highlight {
        background: red !important;
    }

    .ui-datepicker {
        font-size: 16pt!important;
    }
    .highlighta {
        background: none !important;
    }
</style>

EDIT: You can do this to save a date in session and convert the string value to a date value:

var associateDate = newDate(); //save in sessionlocalStorage.setItem('date1', associateDate);

var stringValue = localStorage.getItem('date1'); // loadvar training = newDate(stringValue); 

I hope this will help!

Post a Comment for "Jquery Datepicker- Highlight Date Selected From Datepicker In A Calendar"