jQuery - use the month to display certain content #jquery
var date = new Date();
// var year = date.getFullYear();
var month = date.getMonth() + 1; // add 1 because Jan = 0
// var day = date.getDate();
console.log(month);
if (month == 10 || month == 11 || month == 12) {
var active_fall = ' active';
} else {
var active_fall = '';
}
if (month == 2 || month == 3) {
var active_winter = ' active';
}
else {
var active_winter = '';
}
if (month == 5 || month == 6) {
var active_spring = ' active';
}
else {
var active_spring = '';
}