I'm trying to highlight a horizontal range of days in jQuery UI Datepicker with multiselect plugin. For highlighting I use the :before and :after pseudoelements of the a tags.
.ui-state-highlight a:before,
.ui-state-highlight a:after {
content: "";
display: inline-block;
position: absolute;
width: 12px;
height: 30px;
background: #e84332;
display: none;
}
.ui-state-highlight a:before {
left: -7px;
}
.ui-state-highlight a:after {
right: -8px;
}
Just need to show :before or :after element depending on position of the highlited day. But the datepicker removes the styling every time after rendering. Please, help me to understand, how to run the function that shows the pseudoelements AFTER the datepicker's rendering.
Image of horizontal selection:
JSFiddle: