Created
June 11, 2014 20:38
-
-
Save hron84/fd9d71a2b562230b74eb to your computer and use it in GitHub Desktop.
Toggler
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
jQuery( | |
function() { | |
$('a#info-button').on('click', function(e) { | |
var infodiv = 'div#info-content' | |
$(infodiv).toggle(); | |
if($(infodiv).is(':visible')) { | |
$(this).html('Hide') | |
} else { | |
$(this).html('Show') | |
} | |
}) | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment