You are here

14 May 2012

This snippet shows you how to get date on mouseover from cell in jQuery UI datepicker.

Source code viewer
  1. $("table.ui-datepicker-calendar tbody td").live("mouseenter",function(){
  2. var closest_datepicker = $(this).closest('div.ui-datepicker-group');
  3. var month = closest_datepicker.find('span.ui-datepicker-month').text();
  4. var year = closest_datepicker.find('span.ui-datepicker-year').text();
  5. });
Programming Language: jQuery