right now, I have an event handler that looks like this
$('#nextMonth, #prevMonth').click(function() {
// execute code
});
but trying to make it look something more like this, but not sure how to write it in a way that works
$('#nextMonth, #prevMonth').click || $('.yearSelect).change(function() {
// execute code
});
so basically, if #nextMonth / #prevMonth is clicked, run the function, or if $('.yearSelect') is changed (a dropdown menu), then execute the code in the function. What would be the correct way to write this?