Created
May 30, 2016 10:49
-
-
Save BulatSa/c332ac8b3a36d523fb8307fb3741d7b2 to your computer and use it in GitHub Desktop.
FAQ Open
This file contains hidden or 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
/************************************************** | |
FAQ Open | |
***************************************************/ | |
$('[data-faq=question]').click(function(){ | |
event.preventDefault(); | |
$(this).parent($('.faq-inner__question-one')).toggleClass('active'); | |
$(this).next($('.faq-inner__answerwrap')).slideToggle('slow'); | |
}); | |
/************************************************** | |
End FAQ Open | |
***************************************************/ |
This file contains hidden or 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
<li class="faq-inner__question-one"> | |
<a href="#" class="faq-inner__question-link" data-faq="question">Что сделать, чтобы не звонили родственникам?</a> | |
<div class="faq-inner__answerwrap"> | |
<p class="faq-inner__answer" data-faq="answer"> | |
Есть два способа решения проблемы.</p> | |
</div> | |
</li> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment