Consider:
<div class="toggler">Toggler</div>
<div class="togglable">Lorem ipsum dolor</div>
<script>
$('.togglable').hide();
$('.toggler').click(function(){ $(this).sibling('.togglable').toggle(); });
</script>
The biggest drawback to collapsible content is the inability to easily search inside collapsed content when using Ctrl+F or F3 (let alone, visually "skimming" the page). What I'm thinking might be really useful is to display all collapsed content on a page whenever the browsers "Find on Page" bar is active.
Question:
Is there a way to detect if the "Find on Page" bar is active? Short of just adding listeners for Ctrl+F and F3 (which is a poor option anyways)?