Created
November 3, 2011 01:21
-
-
Save susanBuck/1335495 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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