UI Accordion options

UI Accordion options

I don't understand how the options are meant to be used in jQuery Accordion.
For example I want to set the autoheight to true.

At the moment I have between the head tags:

  1. <script>
      $(document).ready(function() {
        $("#accordion").accordion();
      });
     $( "#accordion" ).accordion({ autoHeight: true });
    </script>





But it isn't working.

I would also like to turn one of my accordion headers into just a standard link but still have it as part of the accordion.

How do I disable the accordion for a particular header?