Datepicker onSelect to change cell style
In an attempt to implement some kind of multiple date selection/highlighting, I try to add a class to a clicked date using the "onSelect" event. However, the datepicker is updated after triggering the onSelect event. This poses two problems:
- I don't know what is the currently selected date (td.ui-datepicker-current-day).
- My added class gets removed by the refresh.
Is there another way to solve this problem? Is there maybe some kind of "afterRefresh" event I'm not aware of?