I want to add a hover to all .ui-state-default elements (cells) of a datepicker. The hover uses class information added by the beforeShowDay function. I need a way to be able to rebind the hover whenever the calendar is re-rendered by changing months/year.
I've tried beforeShow, but it is only called on the first time the datepicker is displayed.
I've tried the onChangeMonthYear, but it is called prior to beforeShowDay, so any hovers I add are on the previous months .ui-state-default elements. Is there a way to bind to the datepicker after the beforeShowDay has been called? Thanks!
setTimeout(someFunction,1);
. Dirty, but works.