Response title
This is preview!
Hi - I'm using this accordion script http://jqueryui.com/accordion/#default, which works great. I modified the script with a class selector so I could apply it to different sections in the same file. However, the first section is open by default. I want all sections to be closed by default. I found this post that suggested how to make this happen.
http://forum.jquery.com/topic/accordion-collapsible-5-10-2011
But, it's not working in my case. Currently my script is:
<script>
$(function() {
$( ".myaccordion" ).accordion({
header: "h3", active: false
});
});
</script>
What does it need to get the sections closed by default?
© 2013 jQuery Foundation
Sponsored by and others.