Accordions

Mission

Our continuing mission is to provide the safest, most efficient aerospace system in the world.

Vision

We continue to improve the safety and efficiency of flight. We are responsive to our customers and are accountable to the taxpayer and the flying public.

Values

  • Safety is our passion. We are the world leaders in aerospace safety.
  • Quality is our trademark. We serve our country, our stakeholders, our customers, and each other.
  • Integrity is our character. We do the right thing, even when no one is looking.
  • People are our strength. We treat people as we want to be treated.

Accordions present related sets of information in a way that saves space by showing only one bit of information at a time. The user clicks a heading to open the accordion to display the bit of information related to that heading.

NOTE: jQuery and jQueryUI must be enabled (the default setting) to use the accordion feature.

Difficulty: 4 out of 5 stars

Browser Compatibility: Supported browsers are IE7, IE8, Firefox, Chrome, Safari, and Opera. This feature is not supported in Internet Explorer 6 or lower.

How to implement Accordions

  1. Split your content into multiple sections with h3 headers. In the example there are 3 such sections.
  2. Use two div to wrap around each block of content you wish to appear underneath the headers.
  3. The first appearing content item should receive class="join" to remove extra whitespace at the top. Supported content items are p, ol, ul, and dl.
  4. Wrap all of the headers (including the content blocks) within another div, and give this div an ID of your choosing. The example's ID is "mvv".
  5. Beneath the footer in the souce code, find the USER JS block. Within the script tag there, add $("#YourIdHere").accordion({ header: "h3" });
    • By default, the accordion will be the height to contain it's longest content block at all times to prevent resizing when selecting each header. To prevent this, instead use $("#YourIdHere").accordion({ header: "h3", autoHeight: false });

Why use Accordions?

Keep in mind the following when considering whether or not to implement an accordion:

If you have 1 or more sets of unrelated supplemental content for a page, Boxed Content is a better option.