Question : Opening and closing accordions with the same H3

Hi - I'm not a javascripter by any stretch but I love playing with jQuery and have a question about Accordions.
 
I'm using this code in the Head of the html:
1:
2:
3:
4:
5:
6:
7:
<script type="text/javascript">
 $(function() {
  $("#juke-accordion").accordion(
  { autoheight: false, active: false }
  );
 });
</script>

 
I'm using h3 tags as titles to open up the different panels.
Here's the implementation:
http://www.thymetoeat.net/N2010/m/index.html

Here's the question:
Is there a way to use the same h3 heading to open and close a panel??  I would like it so that the user can open an accordion panel by clicking on the title and then close the same panel by clicking on the same title.  

Thanks for your help.
d2

Answer : Opening and closing accordions with the same H3

you need to set the collapsible option to true

http://jqueryui.com/demos/accordion/#option-collapsible
Random Solutions  
 
programming4us programming4us