I am currently working on a website and I need to create a FAQs page with a specific layout.
When a user clicks on a question (Q), the answer (A) should open smoothly using jQuery animation. Only one question should be visible at a time.
If a user clicks on another question, the previous one should close automatically and the newly clicked question will be opened.
<div class="faqBlock">
<div class="qa">
<dt>How can I purchase Snoopra?</dt>
<dd>To buy Snoopra, simply choose between monthly or yearly payment options, click on the buy now button, enter your payment information, and you're good to go!</dd>
</div><!-- qa -->
</div><!-- faqBlock -->