No, this is not a straight forward toggle question. I am aware of the toggle() functions and how to simply hide/show a div. Imagine a box with a label inside:
$('.section').click(function() { $(this).removeClass('hidden'); }); $('.section-legend').click(function(e) { var $parent = $(this).parent(); if(!$parent.hasClass('hidden')) { $parent.addClass('hidden'); return false; } });