Created
March 19, 2018 11:59
-
-
Save vladanyes/1044620c511364fcc6330fd59f329ab2 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
$('.view-commonly-asked-questions .views-row').click(function (){ | |
$(this).find('.field-name-field-answer').slideToggle(); | |
$(this).find('.views-field-name').toggleClass('active-tab'); | |
$(this).siblings().find('.field-name-field-answer').slideUp('slow'); | |
$(this).siblings().find('.views-field-name').removeClass('active-tab'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment