1 2 3 4 5 6
$(function () { $('body').on('click', '.stats', function (e) { e.preventDefault(); $(this).parents('.type').toggleClass('expanded'); }); });