I see there is a CSS class added to the selected days
Code: Select all
.datestay
I tried with CSS, but the last-of-type won't work because it's not the last element.
Code: Select all
.monthcalendar td:is(.datestay):first-of-type {
border: 1px solid black !important;
}
.monthcalendar td.datestay {
border: 1px solid yellow !important;
}
.monthcalendar td:is(.datestay):last-of-type {
border: 1px solid black !important;
}
Code: Select all
<script>
$("td.datestay").last().addClass( "lastday" );
</script>