Can anyone help me with creating an onclick event that triggers when the user clicks on the first list item which is labeled as "Any Date"? I am looking to use jQuery to target this specific element.
<ul id="ui-id-1" class="ui-menu ui-widget ui-widget-content" role="menu" tabindex="0" aria-activedescendant="ui-id-5">
<li class="ui-menu-item" id="ui-id-2" tabindex="-1" role="menuitem">
<a href="#">Any Date</a></li>
<li class="ui-menu-item" id="ui-id-3" tabindex="-1" role="menuitem">
<a href="#">Past 7 days</a></li>
<li class="ui-menu-item" id="ui-id-4" tabindex="-1" role="menuitem">
<a href="#">Past month</a></li>
<li class="ui-menu-item" id="ui-id-5" tabindex="-1" role="menuitem">
<a href="#">Past year</a></li>
</ul>