jQuery Accordion Control

  • Here's a primitive example of leveraging Blackboard's built-in jQuery libraries to create a simple accordion control. At the bottom of this page you'll find the code needed to embed this in your page(s). The section content can be plain text, HTML elements, or a mix of both.

    1. Highlight and copy the code at the bottom of this page
    2. Create a new blank page, or select an existing page
    3. Click the "Manage Apps & Layout" link
    4. Click the "Add App" button
    5. From the list on the left, select the "Embed Code" app and click "Create New"
    6. Give your app a name, something descriptive but not too long, then click "Create"
    7. Back at the main page, click the blue "I'm Done" button
    8. Click on your new app (the gray bar)
    9. Paste in the code you copied in step 1
    10. Be sure to change everything between (and including) the "[[" and the "]]" brackets for each section title and content entry with your desired content
    11. Click the the green "Save" button

     

Section 1

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.

Section 2

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna.

Section 3

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.

  • List item one
  • List item two
  • List item three

Section 4

Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est.

Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.