jQuery(document).ready(function($){
jQuery('.week-header').on('click', function(e){ var values = this.id.split('-'); var target = '#' + values[0] + '-week-' + values[2] + '-content'; jQuery(target).slideToggle(); });
});