Initialize the accordion with the classes option specified, changing the theming for the ui-accordion class: Get or set a property of the classes option, after initialization, here reading and changing the theming for the ui-accordion class: Initialize the accordion with the collapsible option specified: Get or set the collapsible option, after initialization: Initialize the accordion with the disabled option specified: Get or set the disabled option, after initialization: Initialize the accordion with the event option specified: Get or set the event option, after initialization: Selector for the header element, applied via .find() on the main accordion element. For example, "foo.bar" would update only the bar property of the foo option. Smooth jQuery Based Accordion-style Image Slider - Accordion.js If accordion specific styling is needed, the following CSS class names can be used for overrides or as keys for the classes option: Initialize the accordion with the active option specified: Get or set the active option, after initialization: Initialize the accordion with the animate option specified: Get or set the animate option, after initialization: Specify additional classes to add to the widget's elements. Using existing jQuery UI Theme classes We also did the same for the border-top, but we apply a white color instead of black to create a sort of highlighting effect. The header that is about to be activated. Whether all the sections can be closed at once. There are a few things going on here. So I just gave it a very large 'left' value. Learning jQuery Fourth Edition Karl Swedberg and Jonathan Chaffer jQuery in Action Bear Bibeault, Yehuda Katz, and Aurelio De Rosa jQuery Succinctly Cody Lindley Web hosting by Digital Ocean | CDN by StackPath. Getting Started with JQuery Accordion widget. card-title class selected and within this particular heading wrap an element to certainly bring the heading of the section. that will act as an accordion. Would like to seek help on the following problem. … However, our accordion still looks plain white, so let’s add some styles to it. Removes the accordion functionality completely. This will alter the built-in color style and replace it with applied one. Our accordion will be based on the jQuery UI, so we need both the jQuery and jQuery UI libraries to be included in the head tag and we will link those files directly from the CDN, as follows. This was a bit more complicated to figure out but essentially what I wanted to do for work was to list out courses and upon clicking the link it navigated to an accordion style page that opened the correct corresponding accordion: