Bootstrap's collapse plugin makes it easy to create accordion-like elements. Read more about it at Bootstrap's collapse plugin page. Required files:
js/bootstrap/bootstrap-collapse.js