I am using jquery full-calender. In page I have two input element
1- startdate( its date to start some event)
2- frequency( no of day for that event after that
IT'S NEARLY IMPOSSIBLE TO CORRECTLY ANSWER QUESTIONS WITHOUT CODE.
But... here's a best guess. The calendar responds to a button click in this example. You'd take your dates and colors and create your events object something like below:
$('button').on('click', function() {
e.preventDefault()
$('#calendar').fullCalendar({
events: [{
title: '1',
start: new Date(2014, 02, 25, 10, 30),
end: new Date(2014, 02, 27, 10, 30),
allDay: false,
editable: false,
backgroundColor: '#ED1317'
}, {
title: '2',
start: new Date(2014, 02, 26, 10, 30),
end: new Date(2014, 02, 28, 10, 30),
allDay: false,
editable: false,
backgroundColor: '#BADA55'
}]
});
})