So I\'m a student and just very lost in my coding class. My teacher gave us this code to make it so when I click on a header, it expands into a paragraph.
He then wants
Just use jQuery's toggle.
$('#'+headerId).on('click', function(){ $('#'+id).toggle(); });