Created
March 8, 2017 03:47
-
-
Save media317/bb08ce10899683fa8924cf1943944da5 to your computer and use it in GitHub Desktop.
FAQ Toggle javascript of question and answer
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( $ ){ | |
$('.faq-list .question').click( function(){ | |
$(this).parent().find('.answer').slideToggle('fast'); | |
$(this).toggleClass('on'); | |
return false; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment