Created
July 18, 2016 18:21
-
-
Save zavod008/6ee1fe80cb490d43a22c1046c278b0c8 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
$('.open-block').hide(); | |
$('.open-btn').click(function() { | |
var findDiv = $(this).next('.open-block'); | |
var findLinia = $(this).closest('.sidebar'); | |
if (findDiv.is(':visible')) { | |
findDiv.slideUp(); | |
} else { | |
findLinia.find('.open-block').slideUp(); | |
findDiv.slideDown(); | |
} | |
return false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment