I need an onclick event, when the user clicks on the first li aka(Any Date).How do I select that element using jQuery?
You can use :first-child
$("ul.ui-menu li.ui-menu-item:first-child").on("click", function() { $(this).css("background", "red"); });
Any Date Past 7 days Past month Past year