I found one very good example of compiled content on the Internet, but it is not finished.
<div class="container faq_wrapper"> <div class="row"> <div class="span10 offset1"> <p> </p> <div class="faq-all-actions"> <a class="faq-expand" onclick="jQuery('.answer-wrapper').css('display','block');">Expand All</a> | <a class="faq-collapse" onclick="jQuery('.answer-wrapper').css('display','none');">Collapse All</a></div> </div> </div> <div class="row"> <div class="span10 offset1"> <div class="question-wrapper"> <div class="arrow"> </div> <div class="big-q"> Q</div> <div class="question"> <h6>Can I try the software before I buy it?</div></h6> <div class="answer-wrapper"> <div class="big-a"> A</div> <div class="answer"> Yes! Simply <a href="/trial">download a free trial</a> and you'll have instant access to all features for 30 days, absolutely free. We don't require your credit card details or any commitment.</div> </div> </div> </div> </div> </div>
How can I expand or hide the answer from the example when I click on a line?
source share