• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Can't get accordion to have an active/open state

Contributor ,
Mar 23, 2018 Mar 23, 2018

Copy link to clipboard

Copied

Hi all,

I built an accordion and am having issues getting one of the tabs to have an active state when landing on the page it's built into. I am guessing this would be js but I'm not having any luck.

This is a link to what I have so far.

Thanks for any help.

http://offers.premierinc.com/accordion_accordion.html

Views

421

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 23, 2018 Mar 23, 2018

jQuery UI Accordion will do what you need.

https://jqueryui.com/accordion/#collapsible

Votes

Translate

Translate
Community Expert ,
Mar 23, 2018 Mar 23, 2018

Copy link to clipboard

Copied

jQuery UI Accordion will do what you need.

https://jqueryui.com/accordion/#collapsible

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 26, 2018 Mar 26, 2018

Copy link to clipboard

Copied

LATEST

Hi Nancy,

Thanks for the link. I really don't want to have to rebuild the css I created and was hoping to find the script to make this work on the one I have built. I've been looking for just the script and am not having any luck.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines