我目前正在开发一个包括fullcalendar JQuery插件的项目。 我想通过点击议程周日或议程日期中的日标题来创建一个包含选定日期的所有活动(附加信息)的列表。我通过viewDisplay选项绑定了表格标题的点击事件:FullCalender:将点击事件绑定到表头
viewDisplay: function(view){
$('table.fc-agenda-days thead th').each(function(){
if($(this).html() != " "){
$(this).css('cursor','pointer'); // set cursor
$(this).unbind('click'); //unbind previously bound 'click'
$(this).click(function(){
// to be continued....
});
}
});
}
这工作正常......但如何从那里继续?我唯一可以检索的是日期标题(例如“Sun 2/19”)。也许有一个更简单的解决方案?
感谢您的帮助!