javascript - Get the date by hovering over a day in monthsView -


i use fullcalendar in monthsview.

i date when hover day in calendar. differently, want same thing event dayclicking hoving day. test many different ways no success ...

i have tried following function:

jq('body').on('mouseover', 'td.fc-day', function() {     console.log("ok"); }), 

i try solutions found in this topic solution works me ...

what can ?

you close, every fc-day & fc-day-number have data-date attribute filled in actual date:

$('body').on('mouseover', 'td.fc-day, td.fc-day-number', function() {     console.log($(this).data('date')); }); 

if have background events render above day cells. because of mouseover not respond. if add following css mouseover events go though background event elements.

.fc-bgevent-skeleton{     pointer-events: none; } 

jsfiddle


Comments