Skip to content

Instantly share code, notes, and snippets.

@charlycoste
Last active December 10, 2015 19:48
Show Gist options
  • Save charlycoste/4484181 to your computer and use it in GitHub Desktop.
Save charlycoste/4484181 to your computer and use it in GitHub Desktop.
$("dt").toggle( function(){$(this).nextAll().show()},
function(){$(this).nextAll().hide()})
.nextAll().hide();
<dl>
<dt>Menu</dt>
<dd>Item 1</dd>
<dd>Item 2</dd>
<dd>Item 3</dd>
</dl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment