biddano
biddano

Reputation: 491

jQuery FullCalendar select next day?

Using the jQuery plugin FullCalendar, I want the selected date on the calendar to be incremented(by only one day) on a button click event.

This is the code I have been trying using the incrementDate() method:

$('#coolButton').click(function(){
    $('#calendar').fullCalendar('incrementDate', 0, 0, 1);
});

This will only work if I increment the year or the month, but never if I increment the day. Any idea how to get the calendar to select the next day?

Thanks

Upvotes: 1

Views: 1518

Answers (1)

prime
prime

Reputation: 15564

Actually It does increase the selected date by a given amount of time. (in your example by a single day). The thing is you can't see it.

if you click that button may be 30+ times you can see the calender will move to the next month. (If you change the CSS of the selected date, then you can see it increment)

Upvotes: 2

Related Questions