Stats

77 Contributors: 2
2016-10-15
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

Accordion

Download jquery-ui eBook

Syntax

  • $(function() { $( "#selecter" ).accordion(); });
  • $(function() { $( "#selecter" ).accordion({ active: 2 }); });
  • $(function() { $( "#selecter" ).accordion({ animate: 200 }); });
  • $(function() { $( "#selecter" ).accordion({ collapsible: true }); });

Parameters

ParameterDetail
activeType Boolean or Integer, Boolean requires collapsible to be true
animateType Boolean, Number, String or Object
collapsibleType Boolean
eventType String
headerType Selector element
heightStyleType String
iconsType jQuery UI icon object

Remarks

More information can be found here: http://api.jqueryui.com/accordion/

Related Examples