To use an accordion, one must have headers and content inside the headers in their HTML. Then one must instantiate the accordion() method of jQuery UI.
<script>
$(function() {
$( "#accordion" ).accordion();
});
</script>
In the HTML:
<div id="accordion"...