Giving this html, i want to grab \"August\" from it when i click on it:
August
i tri
Here we go:
$(".ui-datepicker-month").click(function(){ var textSpan = $(this).text(); alert(textSpan); });
Hope it helps;)