Jump to content
m_hutchins

Making First Accordion Active by Default

Recommended Posts

First off, I am a newbie.

I'm try to make the first accordion tab and heading tab open by default, but keep coming up short. Any and all help would be greatly appreciated!

Sample url: https://www.iciwireless.com/industry-solutions-mat/construction.htm

So, the "Two-way Radio" accordion and header tab should be open when entering the page.

I'm using a DW template with repeatable regions to populate the accordions on a number of pages, which is working, but need the 1st accordion tab open.

The last code that I tried was the following:

<script>
    $(document).onload(function(){
            $("#accordion1Collapse1").collapse('show');
        });
    });
  </script>

No luck there.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...