Line 2: | Line 2: | ||
jQuery('.week-header').on('click', function(e){ | jQuery('.week-header').on('click', function(e){ | ||
var values = this.id.split('-'); | var values = this.id.split('-'); | ||
− | var target = '#' + | + | var target = '#' + values[0] + '-week-' + values[2] + '-content'; |
jQuery(target).slideToggle(); | jQuery(target).slideToggle(); | ||
}); | }); | ||
}); | }); |
Revision as of 23:19, 26 July 2016
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(); });
});