Expand tab on load


I am using a easyredmine module and it has a tab with about 60 things hidden. When the page loads in order to see anything you have to click the tab, it is annoying :-)

Is there a way to add some js so on load this tab opens?

<span onclick="toggleMyPageModule($(this),'easy_documents_index-471600996_category_category','172', true); return false;" class="expander ">&nbsp;</span>

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try simulating/forcing a click.  Let's say you have four span with class="expander" and that the one you posted above is the third one (span #3 with class="expander").  Then try:
   $( 'span.expander:eq(2)' ).trigger('click');

Open in new window

Simply change the 2 to whatever your <span class="expander"> index is.  The first span would be index 0.  The second one is index 1, etc.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
movieprodwAuthor Commented:
I am sorry for the delay, this was a perfect answer
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.