日历容器外的jQuery FullCalendar插件标题

时间:2013-04-22 11:24:28

标签: jquery fullcalendar

在FullCalendar插件中可以定义标题,其中可以查看日期..直到..(显示事件23.04.2013 - 25.04.2013)。这可以通过以下方式完成:

header: {
    left: 'prev,next today',
    center: 'title',
    right: 'year,month,agendaWeek,agendaDay'
}

有没有办法提取title以便在其他元素中使用?我需要从#calender容器中显示此标题内容。

谢谢!

1 个答案:

答案 0 :(得分:0)

你可以使用jquery

var title = $(".fc-header-title h2").html();