Take a look at the live demonstration.
I have developed a basic calendar that displays the current month successfully. However, I am having trouble with the "<<" and ">>" buttons meant to navigate to the previous and next months when clicked.
Here is an excerpt of the code:
prevMonth:function(){
var month = $('.u-start-month').text(),
year = $('.u-start-year').text();
if(month <= 1){
month = 12;
--year;
}
else{
--month;
}
this.initDate(year, month, $.proxy(function(){
this.dir = 'left';
this.init(year, month);
}, this));
},
Can anyone spot what I might be missing?