JSFiddle - React, Tailwind, and code Playground
by MartinTale
HTML
<input type="text" id="datep" />
<div></div>
CSS
#datep {
display: none;
}
.ui-datepicker-calendar tbody td > a.hover-calendar-cell {
border: 1px solid #074e91;
background: #5bacf7 url(images/ui-bg_glass_15_5bacf7_1x400.png) 50% 50% repeat-x;
font-weight: normal;
color: #1a1a1a;
}
JavaScript
$("div").datepicker({
changeMonth: true,
changeYear: true,
inline: true,
altField: "#datep"
});
$("tbody td:not(.ui-state-disabled, .active-calendar-cell)").mouseenter(function (e) {
$(this).closest('td').next().find("a").addClass("hover-calendar-cell");
console.log('test');
});
$("tbody td:not(.ui-state-disabled)").mouseleave(function (e) {
$("a.hover-calendar-cell").removeClass("hover-calendar-cell");
console.log('test out');
});