onDayClick not working
hi! i have last version downloaded. i try onDayClick and onMonthChange callbacks, but nothing happens (alert('ok') never shows). events are set correctly and they are displayed on the calendar. i use latest jquery and bootstrap3. please, help)
Comments (6)
-
repo owner -
thank you for reply! i can explain: if i set onDayClick event handler inside init JS (as you show below), everything seems to be OK, but if i set it outside (after init) like this:
$(".responsive-calendar").responsiveCalendar({ onDayClick: function() { alert('hey!'); } });
its not working. could you test it, please?
i think i just use wrong syntax to set event handler. sorry))) could you tell me how to do it right (outside init JS)? thank you
-
repo owner Yup, that's normal. Callbacks are defined only on initialization and will not work when defining after init.
-
Ok, i understand. Thank you! Can you close this issue?
-
repo owner - changed status to resolved
-
repo owner - changed status to closed
- Log in to comment
Hi, I was trying this code:
and everything seems to work fine.