Skip to content

Instantly share code, notes, and snippets.

@susanBuck
Created November 3, 2011 01:21
Show Gist options
  • Save susanBuck/1335495 to your computer and use it in GitHub Desktop.
Save susanBuck/1335495 to your computer and use it in GitHub Desktop.
function showContent(whichContent) {
/* Turn off all divs */
$('#content-Problem1').css('display','none');
$('#content-Problem2').css('display','none');
$('#content-Problem3').css('display','none');
$('#content-Problem4').css('display','none');
$('#content-Problem5').css('display','none');
/* Turn on just the one we want */
$('#content-' + whichContent).css('display','block');
}
function expand(whichContent) {
$('#answer-' + whichContent).slideToggle('slow');
}
function reply(whichReply) {
$('.reply-' + whichReply).slideToggle('slow');
}
function expand_all() {
$('.answers').slideToggle('slow');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment