Created
May 19, 2016 17:48
-
-
Save ashpriom/f3886e15bb9c96750d9a66e3785c2ab8 to your computer and use it in GitHub Desktop.
Toggle Visibility of DIVs
This file contains hidden or 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
<script type="text/javascript"> | |
function toggleDiv(divId){ | |
$("#"+divId).toggle(); | |
if($("#yestext3").is(':visible')){ | |
if($("#yestext2").is(':visible')){ | |
if($("#yestext1").is(':visible')){ | |
$("#congrats").toggle("1000"); | |
} | |
} | |
} | |
if($("#yestext6").is(':visible')){ | |
if($("#yestext5").is(':visible')){ | |
if($("#yestext4").is(':visible')){ | |
$("#congrats").toggle("1000"); | |
} | |
} | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment