简体   繁体   中英

Add information to days in a month in fullcalendar

I Want to develop a human resource application using Fullcalendar , i want know how to Popup a nice window by clicking on each day to get some information from user. Form is similar for each day and users have to put their working hours in it . Then by clicking on save all the information must save into server and the color of that day in calender should become green which means users already filed this day.

You can use the dayClick method to detect clicking on a day and change color.

$('#calendar').fullCalendar({
    dayClick: function(date, jsEvent, view) {
        $(this).css('background-color', 'green');
        //create window here
        alert('create window');
    }
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM