Avatar of jagku
jagku
Flag for United States of America asked on

jquery Accordion - how do you only show the fully formed version?

Hello Experts,

Currently, my accordion takes a little bit of time to load.
During this time, you can see it being formed - which isn't the nicest thing!

What I am trying to do to prevent the user from seeing the formation is to encapsulate
the accordion within <div> tags.  Then hide the div when the page loads.
Is there a callback route that I can call after the accordion loads to show the hidden div with my beautiful (ok, not that beautiful!) accordion?
Or is there a better way of doing this?

Thanks!
jQuery

Avatar of undefined
Last Comment
Jon Norman

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Jon Norman

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Roopesh Reddy

Hi,

Are you using any third party jQuery Accordion plugin?

If yes, try using jQuery UI Accordion - http://jqueryui.com/demos/accordion/

You can customize with different styles too!

Hope it helps u...
jagku

ASKER
Hi,

No - I am using the jquery UI Accordion.

Thanks
Jon Norman

have you seen my comment #38157560 - about the difference between $(document).ready() and $(window).ready()?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
jagku

ASKER
Hi Jon,

No - I missed it. I will try your suggestion next week as I am currently working on something else.

Many Thanks!
jagku

ASKER
Thank you!!!
Jon Norman

No worries.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.