I recently encountered an issue with the Multiple Dates picker for jQuery UI date picker. It seems that the developer who created it has not updated it in quite some time, resulting in pre-highlighting dates no longer functioning properly. To address this problem, I've devised a plan to store the dates that need to be highlighted in an array and then utilize jQuery to apply the necessary class to the calendars. However, I've hit a roadblock on how to specifically target the anchors with the following structure:
<td class=" ui-datepicker-week-end ui-datepicker-current-day" data-handler="selectDay" data-event="click" data-month="10" data-year="2017">
<a class="ui-state-default" href="#">18</a> <!-- needs class: ui-state-active-->
</td>
My question is, how can I single out elements based on their data attributes such as data-month, data-year, and the number within the anchor tag? Any assistance on this matter would be highly appreciated!