Änderungen
+einklappen/ausklappen-buttons
}
});
$('.details > .summary').each(function() { var $summary = $(this); var $details = $summary.parent(); var $button = $('<button />').html('aufklappen'); $summary.append(" ").append($button); $summary.bind('click', function() { $details.toggleClass('open'); if($details.hasClass(this'open')){ $button.parenthtml('einklappen'); } else { $button.toggleClasshtml('openausklappen'); } });
});
});