问题描述:

After Jquery's datepicker is initialized I would like to add a class ('active-day' ) to one of the specific dates based on a separate Ajax return.

The problem I'm having is that it's easy to Load dates into datepicker before initialized and then the td element has the active-day class added on it, but then I have an ajax input that on success needs to add the active-day class to another day and I'm having a hard time trying to figure out how since the td elements do not seem to be distinct.

Likewise, I have ajax calls that may need to remove the active-day class also for a specific day after datepicker has been initialized.

Any help is appreciated.

相关阅读:
Top