Created
September 4, 2016 13:41
-
-
Save socialstijn/9163e7995b922b4e00078528498e5d62 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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$(".slidingDiv").hide(); | |
$(".hide_show").hide(); | |
$(".show_hide").show(); | |
$('.show_hide').click(function(){ | |
$(".slidingDiv").slideToggle(); | |
$(".show_hide").hide(); | |
$(".hide_show").show(); | |
}); | |
$('.hide_show').click(function(){ | |
$(".slidingDiv").slideToggle(); | |
$(".show_hide").show(); | |
$(".hide_show").hide(); | |
}); | |
}); | |
</script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment