14
rated 0 times
[
17]
[
3]
/ answers: 1 / hits: 33289
/ 9 Years ago, fri, february 13, 2015, 12:00:00
Clicking a date on fullcalendar launches a modal '#view_event'. I want to get the date on which I have clicked. each date has the class '.fc-day' has an attribute data-date=2015-02-13. so I tried the following.
$(.fc-day).click(function(){
var fetchDate = $(this).data(date);
$(#displayDate).text(fetchDate);
});
'#displayDate' is a p element in the modal. The above code isn't working. What's wrong?
More From » jquery